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,5 +1,5 @@
<header class="article-header">
{{ $image := partial "helper/image" . }}
{{ $image := partial "helper/image" (dict "Context" .) }}
{{ if $image.exists }}
<div class="article-image">