From 9cb94563badb1e434bbc6b9f5e7c7d3b99df5004 Mon Sep 17 00:00:00 2001 From: Stephen Siegert Date: Fri, 22 Feb 2019 10:28:32 -0500 Subject: present post single -last mod- info before series links; change presentation --- exampleSite/content/post/migrate-from-jekyll.md | 11 ++++++----- layouts/post/single.html | 12 +++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/post/migrate-from-jekyll.md index 8dd03d5..55784aa 100755 --- a/exampleSite/content/post/migrate-from-jekyll.md +++ b/exampleSite/content/post/migrate-from-jekyll.md @@ -1,8 +1,9 @@ -+++ -date = 2014-03-10 -title = "Migrate to Hugo from Jekyll" -series = "Hugo 101" -+++ +--- +date: 2014-03-10 +title: Migrate to Hugo from Jekyll +series: Hugo 101 +lastmod: 2018-03-10 +--- ## Move static content to `static` diff --git a/layouts/post/single.html b/layouts/post/single.html index 310f7cb..047b088 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -19,6 +19,13 @@ {{ .Content }} + + + {{ if ne .Lastmod .PublishDate }} + last modified {{ dateFormat "January 2, 2006" .Lastmod }} + {{ end }} + + {{ if and (.Site.Taxonomies.series) (isset .Params "series") }}
{{ $readMore := ":wave:" }} @@ -48,11 +55,6 @@
{{ end }} - - {{ if ne .Lastmod .PublishDate }} - Modified : {{ dateFormat "January 2, 2006" .Lastmod }} - {{ end }} - {{ partial "footer.html" . }} -- cgit v1.2.3