mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2026-11-20 18:37:50 +01: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:
23 files changed
+115
-115
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{{- with $.Site.Params.homeInfoParams }}
|
||||
{{- with site.Params.homeInfoParams }}
|
||||
<article class="first-entry home-info">
|
||||
<header class="entry-header">
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
@@ -7,7 +7,7 @@
|
||||
<p>{{ .Content | markdownify }}</p>
|
||||
</section>
|
||||
<footer class="entry-footer">
|
||||
{{ partial "social_icons.html" $.Site.Params.socialIcons }}
|
||||
{{ partial "social_icons.html" site.Params.socialIcons }}
|
||||
</footer>
|
||||
</article>
|
||||
{{- end -}}
|
||||
Reference in new issue
Block a user