fix: add .Type as second cache key for helper/image

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/12
This commit is contained in:
Jimmy Cai
2020-09-18 00:12:26 +02:00
parent c74cc3e4b3
commit 93146c9dc3
10 changed files with 10 additions and 12 deletions
@@ -1,6 +1,5 @@
<header class="article-header">
{{ $image := partialCached "helper/image" (dict "Context" . "Type" "article") .RelPermalink }}
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "article") .RelPermalink "article" -}}
{{ if $image.exists }}
<div class="article-image">
{{ if $image.resource }}