Skip to content
Snippets Groups Projects
Unverified Commit 83ff381b authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Merge pull request #96 from noesya/feature/default-post-image

handle default image
parents ebe090dc a6d3e86f
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