Skip to content
Snippets Groups Projects
Commit 9b234abb authored by Olivia206's avatar Olivia206
Browse files

added style to large layout posts without images

parent da5d2625
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,11 @@
.media,
.post-content
width: columns(4)
@include media-breakpoint-up(xl)
&.without-images
.post
.post-content
width: columns(8)
@include in-page-without-sidebar
.large
.post
......@@ -108,8 +113,15 @@
width: columns(5)
.post-title
@include lead
p[itemprop="articleBody"]
margin-top: calc(#{$spacing-3} + #{$spacing-2})
&.without-images
.post
@include media-breakpoint-up(xl)
margin-left: offset(4)
.post-content
width: columns(6)
@include media-breakpoint-down(xl)
.post-content
width: columns(8)
&--list
article
border-bottom: 1px solid var(--color-border)
......
......@@ -6,8 +6,9 @@
)}}
{{ $index := .index}}
{{ $options := .options }}
{{ $hide_image := .options.hide_image }}
<div class="large">
<div class="large {{- if $hide_image }} without-images{{ end }}">
{{ range .posts }}
{{ with site.GetPage (printf "/posts/%s" .) }}
......
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