From d9db69c4ee23e6f1e4e08c6aea111ca37de945d4 Mon Sep 17 00:00:00 2001 From: alexisben <alex@noesya.coop> Date: Fri, 5 Apr 2024 11:29:20 +0200 Subject: [PATCH] change selector for posts --- assets/sass/_theme/blocks/posts.sass | 14 +++++++------- assets/sass/_theme/sections/posts.sass | 4 ++-- .../partials/blocks/templates/posts/highlight.html | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/sass/_theme/blocks/posts.sass b/assets/sass/_theme/blocks/posts.sass index 9a101e6d..c73f7f07 100644 --- a/assets/sass/_theme/blocks/posts.sass +++ b/assets/sass/_theme/blocks/posts.sass @@ -10,7 +10,7 @@ @include grid($block-posts-grid-columns, desktop) article @include author-and-time-side-to-side - > [itemprop=headline] + .post-title a @include stretched-link text-decoration: none @@ -134,7 +134,7 @@ display: flex flex-direction: column padding-top: $spacing-2 - [itemprop=headline] + .post-title margin-bottom: 0 .post-categories margin-bottom: 0 @@ -180,7 +180,7 @@ &--highlight .highlight-post - [itemprop=headline] + .post-title margin-bottom: $spacing-2 .media margin-bottom: $spacing-2 @@ -207,11 +207,11 @@ @include media-breakpoint-up(desktop) .highlight - [itemprop=headline] + .post-title @include h2 .list article - [itemprop=headline] + .post-title @include h4 @include in-page-with-sidebar @@ -227,7 +227,7 @@ .list article @include grid(8, desktop, 0, 0) - [itemprop=headline] + .post-title grid-column: 1 / 7 .post-categories grid-column: 1 / 7 @@ -323,7 +323,7 @@ @include in-page-with-sidebar .post width: columns(3) - [itemprop="headline"] + .post-title @include h4 .carousel .actions-arrows diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass index 2f16991f..5986cf37 100644 --- a/assets/sass/_theme/sections/posts.sass +++ b/assets/sass/_theme/sections/posts.sass @@ -25,7 +25,7 @@ margin-bottom: $spacing-3 padding-bottom: $spacing-3 flex-direction: row - [itemprop=headline] + p + .post-title + p margin-top: $spacing-2 @include media-breakpoint-up(desktop) @include grid @@ -57,7 +57,7 @@ time font-size: $h5-size .post-content - [itemprop=headline], + .post-title, > p max-width: columns(6) .posts--grid diff --git a/layouts/partials/blocks/templates/posts/highlight.html b/layouts/partials/blocks/templates/posts/highlight.html index ee6b189e..082a9b00 100644 --- a/layouts/partials/blocks/templates/posts/highlight.html +++ b/layouts/partials/blocks/templates/posts/highlight.html @@ -1,7 +1,7 @@ {{ $heading_level := .heading_level | default 3 }} {{ $heading := printf "h%d" $heading_level }} {{ $heading_tag := (dict - "open" ((printf "<%s itemprop='headline'>" $heading) | safeHTML) + "open" ((printf "<%s class='post-title' itemprop='headline'>" $heading) | safeHTML) "close" ((printf "</%s>" $heading) | safeHTML) ) }} <div class="highlight"> -- GitLab