From 7f43210a42d7832f2532d30b68fe1b5acd852d30 Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Tue, 13 Feb 2024 23:50:35 -0500 Subject: [PATCH] use article meta partial --- layouts/_default/single.html | 51 ++++++++++++++++-------------------- layouts/games/list.html | 15 ++--------- 2 files changed, 24 insertions(+), 42 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c4d8890..07ae27a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,32 +1,25 @@ {{ define "main" }} -
-

{{ .Title | markdownify }}

-{{ $authors := .Params.authors | default (slice .Site.Params.defaultAuthor) }} -

{{ index $authors 0 }}

-{{ if .Params.date }}

{{ .Date.Format "Mon | Jan 2, 2006" }}

{{ end }} -{{ range (.GetTerms "tags") }} - {{ .LinkTitle }} -{{ end}} - {{ partial "responsive-image.html" (dict "context" . "class" "shadow large-image") }} -
-{{ if .Params.toc }} -{{ .TableOfContents }} -{{ end }} -
-
- {{ .Content }} -

- {{ with .NextInSection }} - Next: {{ .Title | markdownify }} -
- {{ end }} - {{ with .PrevInSection }} - Previous: {{ .Title | markdownify }} -
- {{ end }} - >> Home -

-
-
+ {{ partial "article-meta.html" . }} + + {{ if .Params.toc }} + {{ .TableOfContents }} + {{ end }} + +
+
+ {{ .Content }} +

+ {{ with .NextInSection }} + Next: {{ .Title | markdownify }} +
+ {{ end }} + {{ with .PrevInSection }} + Previous: {{ .Title | markdownify }} +
+ {{ end }} + >> Home +

+
+
{{ end }} diff --git a/layouts/games/list.html b/layouts/games/list.html index 013fc29..2df9e23 100644 --- a/layouts/games/list.html +++ b/layouts/games/list.html @@ -1,17 +1,6 @@ {{ define "main" }} -
-

{{ .Title | markdownify }}

-{{ $authors := .Params.authors | default (slice .Site.Params.defaultAuthor) }} -

{{ index $authors 0 }}

-{{ if .Params.releaseDate }}

Released {{ dateFormat "Mon | Jan 2, 2006" .Params.releaseDate }}

{{ end }} -{{ range (.GetTerms "tags") }} - {{ .LinkTitle }} -{{ end }} -
-

Platforms:

- {{ delimit .Params.platforms " ยท " }} - {{ partial "responsive-image.html" (dict "context" . "class" "shadow fill-wh") }} -
+ +{{ partial "article-meta.html" . }} {{ if .Params.toc }} {{ .TableOfContents }}