mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-28 05:34:13 -04:00
Use site
function instead of .Site
or $.Site
- The site function provides global access to the same data as the .Site page method. - Current context (`.`) is never considered.
This commit is contained in:
parent
975972e041
commit
575cc0ca8c
23 changed files with 115 additions and 115 deletions
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
|
||||
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
|
||||
|
||||
<head>
|
||||
{{- partial "head.html" . }}
|
||||
|
@ -9,7 +9,7 @@
|
|||
{{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) -}}
|
||||
{{- print "list" -}}
|
||||
{{- end -}}
|
||||
{{- if eq $.Site.Params.defaultTheme `dark` -}}
|
||||
{{- if eq site.Params.defaultTheme `dark` -}}
|
||||
{{- print " dark" }}
|
||||
{{- end -}}
|
||||
" id="top">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue