Skip to content
Snippets Groups Projects
Commit 87500e62 authored by Olivia206's avatar Olivia206
Browse files

fixed posts block

parent 1ef25bad
No related branches found
No related tags found
No related merge requests found
......@@ -81,10 +81,10 @@
@include in-page-without-sidebar
article
padding-bottom: $spacing3
border-bottom: 1px solid $color-border
position: relative
gap: $grid-gutter
padding-bottom: $spacing3
position: relative
.media
width: col(3)
.post-content
......
......@@ -48,18 +48,16 @@
</div>
{{- if .Params.image -}}
<div class="media">
<div class="media">
{{- if .Params.image -}}
{{- partial "commons/image.html"
(dict
"image" .Params.image
"sizes" site.Params.image_sizes.sections.posts.item
) -}}
</div>
{{- else if site.Params.posts.default_image -}}
<div class="media">
{{- else if site.Params.posts.default_image -}}
{{- partial "commons/image-default.html" -}}
</div>
{{- end -}}
{{- end -}}
</div>
</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