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
Tags v3.1.7
No related merge requests found
...@@ -7,6 +7,7 @@ params: ...@@ -7,6 +7,7 @@ params:
breadcrumb: breadcrumb:
position: hero-start # hero-start | hero-end | after-hero position: hero-start # hero-start | hero-end | after-hero
posts: posts:
default_image: false
index: index:
show_categories: false show_categories: false
show_author: false show_author: false
......
...@@ -38,16 +38,18 @@ ...@@ -38,16 +38,18 @@
</div> </div>
<div class="media"> {{- if .Params.image -}}
{{- if .Params.image -}} <div class="media">
{{- partial "commons/image.html" {{- partial "commons/image.html"
(dict (dict
"image" .Params.image "image" .Params.image
"sizes" site.Params.image_sizes.sections.posts.item "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" -}} {{- partial "commons/image-default.html" -}}
{{- end -}} </div>
</div> {{- end -}}
</article> </article>
{{ end }} {{ 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