From b84e20be7f4dac635b38759f923954687dd0a2e3 Mon Sep 17 00:00:00 2001 From: Simon Guest Date: Thu, 11 Nov 2021 21:46:08 +1300 Subject: [PATCH] Allow for image_anchor in frontmatter --- layouts/_default/archives.html | 2 +- layouts/_default/list.html | 4 ++-- layouts/partials/article/components/related-contents.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 5d5243c..c61d631 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -8,7 +8,7 @@
{{ range $terms }} - {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "taxonomy") }} + {{ partial "article-list/tile" (dict "context" . "size" (printf "250x150 %s" .Params.image_anchor) "Type" "taxonomy") }} {{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9bc618d..20bd81b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -60,7 +60,7 @@
{{ range . }} - {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "section") }} + {{ partial "article-list/tile" (dict "context" . "size" (printf "250x150 %s" .Params.image_anchor) "Type" "section") }} {{ end }}
@@ -82,4 +82,4 @@ {{ define "right-sidebar" }} {{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/article/components/related-contents.html b/layouts/partials/article/components/related-contents.html index 29cfff6..a2d426c 100644 --- a/layouts/partials/article/components/related-contents.html +++ b/layouts/partials/article/components/related-contents.html @@ -5,9 +5,9 @@ -{{ end }} \ No newline at end of file +{{ end }}