Allow for image_anchor in frontmatter

This commit is contained in:
Simon Guest 2021-11-11 21:46:08 +13:00
parent c1fcec95a6
commit b84e20be7f
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@
<div class="subsection-list">
<div class="article-list--tile">
{{ 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 }}
</div>
</div>

View File

@ -60,7 +60,7 @@
<div class="subsection-list">
<div class="article-list--tile">
{{ 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 }}
</div>
</div>
@ -82,4 +82,4 @@
{{ define "right-sidebar" }}
{{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }}
{{ end }}
{{ end }}

View File

@ -5,9 +5,9 @@
<div class="related-contents">
<div class="flex article-list--tile">
{{ range . }}
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
{{ partial "article-list/tile" (dict "context" . "size" (printf "250x150 %s" .Params.image_anchor) "Type" "articleList") }}
{{ end }}
</div>
</div>
</aside>
{{ end }}
{{ end }}