summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-03-27 18:44:06 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-03-27 18:44:06 +0530
commit575cc0ca8c4e5904c7ae77e76db812c52e5f8ed1 (patch)
tree29b83f765f6ccae88651886167681b4afdb71069 /layouts/_default/single.html
parent975972e04181007c61302054d18735dc440a0586 (diff)
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.
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1d983fd..d313500 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -21,7 +21,7 @@
</div>
{{- end }}
</header>
- {{- $isHidden := .Params.cover.hidden | default .Site.Params.cover.hiddenInSingle | default .Site.Params.cover.hidden }}
+ {{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
{{- if (.Param "ShowToc") }}
{{- partial "toc.html" . }}
@@ -46,7 +46,7 @@
{{- if (.Param "ShowPostNavLinks") }}
{{- partial "post_nav_links.html" . }}
{{- end }}
- {{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
+ {{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
{{- partial "share_icons.html" . -}}
{{- end }}
</footer>