From 27bea6e56f9a90357ddea913f1294f3bb51c0b86 Mon Sep 17 00:00:00 2001 From: breadcat Date: Fri, 26 Feb 2021 00:20:05 +0000 Subject: Quick fix Whoops, shouldn't be listing blank tags if they aren't specified --- themes/Brine/layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/Brine') diff --git a/themes/Brine/layouts/_default/single.html b/themes/Brine/layouts/_default/single.html index 63bd58b..cb42123 100644 --- a/themes/Brine/layouts/_default/single.html +++ b/themes/Brine/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }}

{{ .Title }}

{{ if .PublishDate }}
Published: {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }}, last updated: {{ .Lastmod.Format "Jan 2, 2006" }}{{ end }}
{{ end }} -
Reading time: {{ .ReadingTime }} min
-
Tags: {{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}{{ $e | humanize }}{{- end -}}
+
Reading time: {{ .ReadingTime }} min
{{ if .Params.tags }} +
Tags: {{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}{{ $e | humanize }}{{- end -}}
{{ end }} {{ .Content }}{{ end }} -- cgit v1.2.3