From cf0aaea41de8aec7cf9fd700a6c0477f2ab381e6 Mon Sep 17 00:00:00 2001
From: John Bowdre
Date: Sun, 17 Sep 2023 19:20:17 -0500
Subject: [PATCH] layout: tweak tags presentation
---
layouts/partials/aside.html | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html
index 3a65cd6..a896cde 100644
--- a/layouts/partials/aside.html
+++ b/layouts/partials/aside.html
@@ -5,27 +5,32 @@
{{ if .Params.date }}
posted: | {{ $postDate }} |
{{- if ne $postDate $updateDate }}updated: | {{ $updateDate }} |
{{ end }}
{{ end }}
-
+
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
- On this page
+
+
On this page
{{ .TableOfContents }}
+
{{ end }}
{{- with .Params.tags -}}
- tags:
+
+
Tags
+ [all]
{{- range . }}
{{- $tag := urlize . -}}
[{{ . }}]
{{- end }}
+
- {{- end }}
+ {{- end }}
{{ end }}
{{ if isset .Params "series" }}
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
-More {{ .Params.series }}
+More {{ .Params.series }}
{{- range first $relatedLimit $related }}
-
@@ -45,7 +50,7 @@
{{- $featured := default 8 .Site.Params.numberOfFeaturedPosts }}
{{- $featuredPosts := first $featured (where $posts "Params.featured" true)}}
{{- with $featuredPosts }}
-
Featured Posts
+Featured Posts