diff --git a/assets/sass/main.scss b/assets/sass/main.scss index 278d8e0..4ca061d 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -67,6 +67,10 @@ a:visited, a:hover { max-width: 820px; margin: auto; padding: 4px; + + img { + width: 100%; + } } .center-text { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d02df25..d496035 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,7 @@ {{ range (.GetTerms "tags") }} {{ .LinkTitle }} {{ end}} - {{ partial "responsive-image.html" (dict "context" .Params.featured "class" "shadow large-image") }} + {{ partial "responsive-image.html" (dict "context" . "class" "shadow large-image") }} {{ if .Params.toc }} diff --git a/layouts/authors/list.html b/layouts/authors/list.html index 7a9d4fd..200f981 100644 --- a/layouts/authors/list.html +++ b/layouts/authors/list.html @@ -8,7 +8,9 @@ | {{ .Params.email}}
- {{ .Params.alt }} + {{ with .Resources.GetMatch "avatar" }} + {{ .Params.alt }} + {{ end }} {{ end }} {{ .Content }} diff --git a/layouts/games/list.html b/layouts/games/list.html index cf3cbbc..013fc29 100644 --- a/layouts/games/list.html +++ b/layouts/games/list.html @@ -3,14 +3,14 @@

{{ .Title | markdownify }}

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

{{ index $authors 0 }}

-{{ if .Params.date }}

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

{{ end }} +{{ 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" .Params.featured "class" "shadow fill-wh") }} + {{ partial "responsive-image.html" (dict "context" . "class" "shadow fill-wh") }} {{ if .Params.toc }} diff --git a/layouts/partials/article-card-alternate.html b/layouts/partials/article-card-alternate.html index 981308c..ab1df6c 100644 --- a/layouts/partials/article-card-alternate.html +++ b/layouts/partials/article-card-alternate.html @@ -1,7 +1,9 @@
- {{ .Params.alt }} + {{ with .Resources.GetMatch "avatar" }} + {{ .Params.alt }} + {{ end }}

{{ .Params.name }}

diff --git a/layouts/partials/article-card.html b/layouts/partials/article-card.html index 8ce9baf..0250497 100644 --- a/layouts/partials/article-card.html +++ b/layouts/partials/article-card.html @@ -1,7 +1,7 @@
- {{ partial "responsive-image.html" (dict "context" .Params.featured)}} + {{ partial "responsive-image.html" (dict "context" .)}}