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 }}

-
- {{- if .Date -}} - - {{- end -}} - {{- with .Params.Author -}} - - {{- end -}} - {{- if and (.Param "readingTime") (eq (.Param "readingTime") true) -}} - {{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} - {{- end -}} - {{- if and (.Params.showWordCount | default .Site.Params.showWordCount) (eq (.Param "showWordCount") true) -}} - {{ .WordCount }} {{ $.Site.Params.words | default "words" }} - {{- end -}} -
+ {{ partial "post-meta.html" . }} {{ if .Params.tags }} diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html new file mode 100644 index 0000000..c55870e --- /dev/null +++ b/layouts/partials/post-meta.html @@ -0,0 +1,20 @@ + +