From 02d6d2f08623ed894085ee4f0594c383fba9c167 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Sun, 25 Aug 2019 08:58:26 +0200 Subject: [PATCH] layout: add a partial for blog post data * NEW Adds a partial for blog post data. * NEW Displays date or publishdate, and lastmod if it exists. Co-Authored-by: Igor Milhit --- layouts/_default/single.html | 22 +--------------------- layouts/partials/post-info.html | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 layouts/partials/post-info.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3ae5fc9..977c0d9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,27 +2,7 @@

{{ .Title }}

- + {{- partial "post-info.html" . -}}
{{ .Content }} diff --git a/layouts/partials/post-info.html b/layouts/partials/post-info.html new file mode 100644 index 0000000..2071037 --- /dev/null +++ b/layouts/partials/post-info.html @@ -0,0 +1,25 @@ + +