From 198c05a317e44e27b6aa2e7f256b3d0e84db32d6 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 25 May 2022 15:22:38 -0500 Subject: [PATCH] merge in theme updates --- layouts/_default/single.html | 4 ++-- layouts/partials/footer.html | 2 +- layouts/partials/sidebar.html | 12 ++++++++++-- themes/hugo-clarity | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dffd529..9faf6e6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,7 +13,7 @@
{{- $t := .Title }} -

{{ $t }}

+

{{ $t | markdownify }}

{{- partial "post-meta" . }} {{- with .Param "lastmod" -}} {{- $ageDays = div (sub now.Unix .Unix) 86400 -}} @@ -28,7 +28,7 @@ {{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
{{- end -}} - {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }} + {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($p.toc) }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 43b2786..5246027 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,7 +8,7 @@ diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 346526e..8bf4c3c 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -33,6 +33,14 @@ {{ $r }} {{- end }} {{- end }} + + {{ if .Site.Params.sidebardisclaimer }} +
+

Disclaimer

+ {{ .Site.Params.disclaimerText }} +
+ {{ end }} + {{- $relatedInSidebar := true }} {{- if eq $s.showRelatedInSidebar false }} {{ $relatedInSidebar = false }} @@ -62,7 +70,7 @@ @@ -72,7 +80,7 @@ {{- $recent := default 8 $s.numberOfRecentPosts }} {{- range first $recent $posts }}
  • - {{ .Title }} + {{ .Title | markdownify }}
  • {{- end }} diff --git a/themes/hugo-clarity b/themes/hugo-clarity index 6c3db7c..e511e14 160000 --- a/themes/hugo-clarity +++ b/themes/hugo-clarity @@ -1 +1 @@ -Subproject commit 6c3db7cbab090796895b4b66ffd76bbbd768195e +Subproject commit e511e14db7a11b726ccc6c4456bf5ec5ebdd3720