Skip to content
Snippets Groups Projects
Unverified Commit 85fd65b1 authored by Olivia Simonet's avatar Olivia Simonet Committed by GitHub
Browse files

Ajustement des metas dans le bloc de posts en liste (#942)


Co-authored-by: default avatarAlexis BENOIT <alex@noesya.coop>
parent 6738daaf
No related branches found
No related tags found
No related merge requests found
......@@ -183,14 +183,26 @@
.media
width: columns(3)
.post-content
display: flex
flex-direction: column
width: columns(6)
+ article
margin-top: $spacing-5
.post-meta
position: absolute
right: 0
top: 0
margin-top: 0.3em
margin-top: auto
padding-top: $spacing-3
time
margin-top: 0.3em
position: absolute
right: 0
top: 0
.post-reading-time,
display: block
&::before
content: none
.post-author:first-of-type
[itemprop="name"]::before
content: none
&--highlight
.highlight-post
......
{{ range .GetTerms "authors" }}
{{- range .GetTerms "authors" -}}
{{- $person := site.GetPage (printf "/persons/%s" .Slug) -}}
{{ with $person }}
{{- with $person -}}
<div class="post-author" itemscope itemtype="https://schema.org/Person" itemprop="author">
<p itemprop="name">{{ .Title | safeHTML }}</p>
{{- /* remove white space */ -}}
<p itemprop="name">{{- .Title | safeHTML -}}</p>
{{- /* remove white space */ -}}
</div>
{{ end }}
{{ end }}
\ No newline at end of file
{{- end -}}
{{- end -}}
\ No newline at end of file
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