mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-02 23:59:51 -04:00
lazy load cover images in lists only
This commit is contained in:
parent
28ec7a407d
commit
65c2720ab9
3 changed files with 8 additions and 7 deletions
|
@ -22,7 +22,7 @@
|
|||
{{- end }}
|
||||
</header>
|
||||
{{- $isHidden := (.Param "cover.hiddenInSingle") | default (.Param "cover.hidden") | default false }}
|
||||
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
|
||||
{{- partial "cover.html" (dict "cxt" . "IsSingle" true "isHidden" $isHidden) }}
|
||||
{{- if (.Param "ShowToc") }}
|
||||
{{- partial "toc.html" . }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue