feat(helper/image): new way to set default image
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{ $image := partial "helper/image" .context }}
|
||||
{{ $image := partial "helper/image" (dict "Context" .context) }}
|
||||
<article class="{{ if $image.exists }}has-image{{ end }}">
|
||||
<a href="{{ .context.Permalink }}">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user