From 48cd01768bd81c857162ac3dd70c523ac2c19c23 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 14 Apr 2024 19:30:41 +0200 Subject: sync theme --- themes/PaperMod/layouts/_default/single.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'themes/PaperMod/layouts/_default/single.html') diff --git a/themes/PaperMod/layouts/_default/single.html b/themes/PaperMod/layouts/_default/single.html index b749725..19a624f 100644 --- a/themes/PaperMod/layouts/_default/single.html +++ b/themes/PaperMod/layouts/_default/single.html @@ -3,9 +3,16 @@
{{ partial "breadcrumbs.html" . }} -

+

{{ .Title }} - {{- if .Draft }}  [draft]{{- end }} + {{- if .Draft }} + + + + + + {{- end }}

{{- if .Description }}
@@ -21,8 +28,8 @@
{{- end }}
- {{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }} - {{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }} + {{- $isHidden := (.Param "cover.hiddenInSingle") | default (.Param "cover.hidden") | default false }} + {{- partial "cover.html" (dict "cxt" . "IsSingle" true "isHidden" $isHidden) }} {{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} {{- end }} -- cgit v1.2.3