Skip to content
Snippets Groups Projects
Commit d9db69c4 authored by alexisben's avatar alexisben
Browse files

change selector for posts

parent 8c6c08f0
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
@include grid($block-posts-grid-columns, desktop) @include grid($block-posts-grid-columns, desktop)
article article
@include author-and-time-side-to-side @include author-and-time-side-to-side
> [itemprop=headline] .post-title
a a
@include stretched-link @include stretched-link
text-decoration: none text-decoration: none
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
display: flex display: flex
flex-direction: column flex-direction: column
padding-top: $spacing-2 padding-top: $spacing-2
[itemprop=headline] .post-title
margin-bottom: 0 margin-bottom: 0
.post-categories .post-categories
margin-bottom: 0 margin-bottom: 0
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
&--highlight &--highlight
.highlight-post .highlight-post
[itemprop=headline] .post-title
margin-bottom: $spacing-2 margin-bottom: $spacing-2
.media .media
margin-bottom: $spacing-2 margin-bottom: $spacing-2
...@@ -207,11 +207,11 @@ ...@@ -207,11 +207,11 @@
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
.highlight .highlight
[itemprop=headline] .post-title
@include h2 @include h2
.list .list
article article
[itemprop=headline] .post-title
@include h4 @include h4
@include in-page-with-sidebar @include in-page-with-sidebar
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
.list .list
article article
@include grid(8, desktop, 0, 0) @include grid(8, desktop, 0, 0)
[itemprop=headline] .post-title
grid-column: 1 / 7 grid-column: 1 / 7
.post-categories .post-categories
grid-column: 1 / 7 grid-column: 1 / 7
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
@include in-page-with-sidebar @include in-page-with-sidebar
.post .post
width: columns(3) width: columns(3)
[itemprop="headline"] .post-title
@include h4 @include h4
.carousel .carousel
.actions-arrows .actions-arrows
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
margin-bottom: $spacing-3 margin-bottom: $spacing-3
padding-bottom: $spacing-3 padding-bottom: $spacing-3
flex-direction: row flex-direction: row
[itemprop=headline] + p .post-title + p
margin-top: $spacing-2 margin-top: $spacing-2
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
@include grid @include grid
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
time time
font-size: $h5-size font-size: $h5-size
.post-content .post-content
[itemprop=headline], .post-title,
> p > p
max-width: columns(6) max-width: columns(6)
.posts--grid .posts--grid
......
{{ $heading_level := .heading_level | default 3 }} {{ $heading_level := .heading_level | default 3 }}
{{ $heading := printf "h%d" $heading_level }} {{ $heading := printf "h%d" $heading_level }}
{{ $heading_tag := (dict {{ $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) "close" ((printf "</%s>" $heading) | safeHTML)
) }} ) }}
<div class="highlight"> <div class="highlight">
......
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