diff options
author | tdro <tdro@noreply.example.com> | 2022-09-22 23:14:39 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-09-22 23:14:39 -0400 |
commit | cc1746ce7d659d72717a8e195e76b0427742454c (patch) | |
tree | 7cc47fe35229dc4e5dcd75872bf7e267658c1b1b /themes/default/layouts | |
parent | 7f52e601fdf5f6ca5268d72b21afdaf112562651 (diff) | |
download | canory-cc1746ce7d659d72717a8e195e76b0427742454c.tar.gz canory-cc1746ce7d659d72717a8e195e76b0427742454c.tar.bz2 canory-cc1746ce7d659d72717a8e195e76b0427742454c.zip |
themes/default/layouts/partials/function-caches-images: Opt -> Alt
Diffstat (limited to 'themes/default/layouts')
-rw-r--r-- | themes/default/layouts/partials/author-card.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/partials/author-header.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/partials/function-caches-images.html | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index 7f8a5d6..1211c3f 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -19,7 +19,7 @@ {{- $height := $image.Height -}} {{- $source := $image.RelPermalink -}} {{- $alternate := .Data.name -}} -{{- $sourceset := $image.OptRelPermalink -}} +{{- $sourceset := $image.AltRelPermalink -}} {{- with .Params.feed.image -}} {{- $width = "64" -}} diff --git a/themes/default/layouts/partials/author-header.html b/themes/default/layouts/partials/author-header.html index b1b1634..9c969c9 100644 --- a/themes/default/layouts/partials/author-header.html +++ b/themes/default/layouts/partials/author-header.html @@ -16,7 +16,7 @@ ) -}} -{{- with $image.OptRelPermalink -}} +{{- with $image.AltRelPermalink -}} <source srcset="{{ . }}" type="image/webp" /> {{- end -}} diff --git a/themes/default/layouts/partials/function-caches-images.html b/themes/default/layouts/partials/function-caches-images.html index 768c7e9..c64caf1 100644 --- a/themes/default/layouts/partials/function-caches-images.html +++ b/themes/default/layouts/partials/function-caches-images.html @@ -46,8 +46,8 @@ {{- $image = $image | resources.Copy $alternateCopy -}} {{- $data = merge $data (dict - "OptPermalink" $image.Permalink - "OptRelPermalink" $image.RelPermalink + "AltPermalink" $image.Permalink + "AltRelPermalink" $image.RelPermalink ) -}} {{- end -}} @@ -77,8 +77,8 @@ {{- $image = $image | resources.Copy $alternateCopy -}} {{- $data = merge $data (dict - "OptPermalink" $image.Permalink - "OptRelPermalink" $image.RelPermalink + "AltPermalink" $image.Permalink + "AltRelPermalink" $image.RelPermalink ) -}} {{- end -}} @@ -102,8 +102,8 @@ {{- $image = $image | resources.Copy $alternateCopy -}} {{- $data = merge $data (dict - "OptPermalink" $image.Permalink - "OptRelPermalink" $image.RelPermalink + "AltPermalink" $image.Permalink + "AltRelPermalink" $image.RelPermalink ) -}} {{- end -}} |