Skip to content
Snippets Groups Projects
Commit a6d3e86f authored by alexisben's avatar alexisben
Browse files

handle default image

parent ebe090dc
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ params:
breadcrumb:
position: hero-start # hero-start | hero-end | after-hero
posts:
default_image: false
index:
show_categories: false
show_author: false
......
......@@ -38,16 +38,18 @@
</div>
<div class="media">
{{- if .Params.image -}}
{{- if .Params.image -}}
<div class="media">
{{- partial "commons/image.html"
(dict
"image" .Params.image
"sizes" site.Params.image_sizes.sections.posts.item
) -}}
{{- else -}}
</div>
{{- else if site.Params.posts.default_image -}}
<div class="media">
{{- partial "commons/image-default.html" -}}
{{- end -}}
</div>
</div>
{{- end -}}
</article>
{{ end }}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment