diff --git a/assets/sass/_theme/blocks/posts.sass b/assets/sass/_theme/blocks/posts.sass index 9a101e6d619993a300cc20c0bdfc237093298d9e..c73f7f078284e371a77752d3b55e1493814a64ea 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 2f16991f055de2123a379edd2fd25ede8dc87de0..5986cf3786b85b51b9388f9252c2c2965dd5f688 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 ee6b189ed7612f824693239de569c59ff50f96e4..082a9b00f2c5d48cb468781fbf64f38f4ee89c2f 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">