diff --git a/layouts/_default/meta-extra.html b/layouts/_default/meta-extra.html new file mode 100644 index 0000000..7fcdac1 --- /dev/null +++ b/layouts/_default/meta-extra.html @@ -0,0 +1,2 @@ +

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

+ diff --git a/layouts/games/meta-extra.html b/layouts/games/meta-extra.html new file mode 100644 index 0000000..e427635 --- /dev/null +++ b/layouts/games/meta-extra.html @@ -0,0 +1,7 @@ +{{ if .Params.releaseDate }} +

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

+
+{{ end }} + +

Platforms:

+{{ delimit .Params.platforms " ยท " }} diff --git a/layouts/partials/article-meta.html b/layouts/partials/article-meta.html new file mode 100644 index 0000000..51c6409 --- /dev/null +++ b/layouts/partials/article-meta.html @@ -0,0 +1,21 @@ +
+

{{ .Title | markdownify }}

+ + {{ $authors := .Params.authors | default (slice .Site.Params.defaultAuthor) }} + {{ $primaryAuthor := index $authors 0 }} + + {{ with $primaryAuthor }} + +

{{ . }}

+
+ {{ end }} + + {{ .Render "meta-extra" }} + + {{ range (.GetTerms "tags") }} + {{ .LinkTitle }} + {{ end }} + + {{ partial "header-image.html" (dict "image" (.Resources.GetMatch .Params.featured.url) "alt" .Params.featured.alt) }} + +
diff --git a/layouts/partials/header-image.html b/layouts/partials/header-image.html new file mode 100644 index 0000000..bc3beb2 --- /dev/null +++ b/layouts/partials/header-image.html @@ -0,0 +1,10 @@ +{{ .alt }} diff --git a/layouts/partials/responsive-image.html b/layouts/partials/responsive-image.html index e64f011..9beba51 100644 --- a/layouts/partials/responsive-image.html +++ b/layouts/partials/responsive-image.html @@ -1,15 +1,3 @@ -{{ if resources.Get .context.Params.featured.url }} -{{ .context.Params.featured.alt }} -{{ else }} -{{ end }}