From c0a62024352b5ccb122c3f6447518050af8eceeb Mon Sep 17 00:00:00 2001 From: revsuine Date: Mon, 25 Nov 2024 15:48:37 +0000 Subject: [PATCH] layouts/partials/post-meta.html, layouts/_default/single.html, layouts/_default/list.html: use same post meta for post page and list --- layouts/_default/list.html | 11 +---------- layouts/_default/single.html | 20 +------------------- layouts/partials/post-meta.html | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 29 deletions(-) create mode 100644 layouts/partials/post-meta.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7ff9350..69be13b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,16 +10,7 @@

{{ .Title | markdownify }}

-
- {{- if .Date -}} - - {{- end -}} - {{- with .Params.Author -}} - - {{- end -}} -
+ {{ partial "post-meta.html" . }} {{ if .Params.tags }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7aee23c..c9183ae 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,25 +3,7 @@

{{ .Title | markdownify }}

- + {{ partial "post-meta.html" . }} {{ if .Params.tags }}