aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-08-04 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-08-04 00:00:00 +0000
commit157f564b9a35dd8e327a33b45b50167ff4f332cbe2be3629dd6106f026095743 (patch)
tree666ff8ff709f194f934ab363f0c212b84525cbfb21505d06fdc8b1e771b4e501 /layouts/partials/metadata.html
parent2de93801e1a8a657f0f98bf363ac3485cd11e1722d5feb33226860b8b3509bd7 (diff)
downloadhugo-theme-journal-157f564b9a35dd8e327a33b45b50167ff4f332cbe2be3629dd6106f026095743.tar.gz
hugo-theme-journal-157f564b9a35dd8e327a33b45b50167ff4f332cbe2be3629dd6106f026095743.zip
Remove extra newlines from HTML output
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r--layouts/partials/metadata.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
index aec5e8c..92c0b83 100644
--- a/layouts/partials/metadata.html
+++ b/layouts/partials/metadata.html
@@ -1,9 +1,9 @@
-{{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
-{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }}
+{{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
+{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}}
<article>
<header>
<p>{{ .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read<br>
<a href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p>
</header>
</article>
-{{ end }}
+{{ end }} \ No newline at end of file