diff --git a/assets/sass/_theme/blocks/posts.sass b/assets/sass/_theme/blocks/posts.sass index f7e8ff91b5db94eb93813195e071439602fc2ead..ca07ff1eef80f8e74b2a0fe10b359f65ad694f8c 100644 --- a/assets/sass/_theme/blocks/posts.sass +++ b/assets/sass/_theme/blocks/posts.sass @@ -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) diff --git a/layouts/partials/blocks/templates/posts/large.html b/layouts/partials/blocks/templates/posts/large.html index d1279d2142cab4c1816abe60c383ff0fcbd90f0c..f54b79ee474855c66d934c21585c0ce7b97d5bd8 100644 --- a/layouts/partials/blocks/templates/posts/large.html +++ b/layouts/partials/blocks/templates/posts/large.html @@ -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" .) }}