feat(helper/image): new way to set default image
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{ $image := partial "helper/image" . }}
|
||||
{{ $image := partial "helper/image" (dict "Context" .) }}
|
||||
{{ $context := . }}
|
||||
<div class="article-details">
|
||||
{{ with $categories := .Params.categories }}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user