feat(image): add article and article list default image settings

This commit is contained in:
Jimmy Cai
2020-09-11 18:07:29 +02:00
parent 2acd380e98
commit a2732a312a
6 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
</footer>
</div>
{{ $image := partial "helper/image" (dict "Context" .) }}
{{ $image := partial "helper/image" (dict "Context" . "Type" "articleList") }}
{{ if $image.exists }}
<div class="article-image">
+1 -1
View File
@@ -1,4 +1,4 @@
{{ $image := partial "helper/image" (dict "Context" .) }}
{{ $image := partial "helper/image" (dict "Context" . "Type" "articleList") }}
<article class="{{ if $image.exists }}has-image{{ end }}">
{{ if $image.exists }}
<div class="article-image">
+1 -1
View File
@@ -1,4 +1,4 @@
{{ $image := partial "helper/image" (dict "Context" .context) }}
{{ $image := partial "helper/image" (dict "Context" .context "Type" .Type) }}
<article class="{{ if $image.exists }}has-image{{ end }}">
<a href="{{ .context.Permalink }}">