diff --git a/assets/sass/_theme/utils/blocks.sass b/assets/sass/_theme/utils/blocks.sass index d95c4283240be52539f47c56b3c2f256c613bbc8..edbb02a28614cd25a6c0a48d706ba9b6c78bbe90 100644 --- a/assets/sass/_theme/utils/blocks.sass +++ b/assets/sass/_theme/utils/blocks.sass @@ -48,7 +48,7 @@ aspect-ratio: unset @include media-breakpoint-up(desktop) width: columns(4) - &:not(:first-child) + &:not(:first-child, .without-image) margin-top: -5% &:nth-child(odd) margin-left: auto diff --git a/layouts/partials/blocks/templates/pages/alternate.html b/layouts/partials/blocks/templates/pages/alternate.html index 904ae99335128e12a48e2495e1ba0c21bde5b426..b01d4bc06ad80a79488b1175674f5917b209d6cd 100644 --- a/layouts/partials/blocks/templates/pages/alternate.html +++ b/layouts/partials/blocks/templates/pages/alternate.html @@ -16,7 +16,7 @@ {{ else }} {{ $image_class = "" }} {{ end }} - <article class="{{ $image_class }}"> + <article class="{{ $image_class }} {{- if (not (isset .Params "image")) -}} without-image {{- end -}}"> {{ $heading_tag.open }} <a href="{{- .Permalink -}}"> {{- partial "PrepareHTML" .Title -}} diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html index 3173d943b7194a332bd86d583c061259ce093b69..b1149355f8df4bb44f8041c846ea503b4b6ba559 100644 --- a/layouts/partials/posts/post.html +++ b/layouts/partials/posts/post.html @@ -19,7 +19,7 @@ {{- $direction = partial "GetImageDirection" .Params.image -}} {{ end }} -<article class='post {{ if $alternate }}{{ $direction }} {{if not (modBool $index 2)}}left{{ else}}right{{end}}{{end}}' itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting"> +<article class='post {{ if $alternate }} {{- if (not (isset .Params "image")) -}} without-image {{- end -}}{{ $direction }} {{if not (modBool $index 2)}}left{{ else}}right{{end}}{{end}}' itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting"> <div class="post-content"> {{- $title := partial "PrepareHTML" .Title -}}