feat(helper/image): new way to set default image

This commit is contained in:
Jimmy Cai
2020-09-11 16:27:23 +02:00
parent cfd4cdb731
commit a2662603df
9 changed files with 45 additions and 16 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{ $image := partial "helper/image" . }}
{{ $image := partial "helper/image" (dict "Context" .) }}
<article class="{{ if $image.exists }}has-image{{ end }}">
{{ if $image.exists }}
<div class="article-image">