copy-colle le code sur le doublon

This commit is contained in:
gribse 2025-04-18 16:17:19 +02:00
parent 27f9ede96c
commit a2f33032b6

View file

@ -17,10 +17,10 @@
</div>
<div class="scrolling-posts {{ $direction }}-scroll">s
<div class="scrolling-posts {{ $direction }}-scroll">
{{- $pages := where $context.Site.RegularPages "Section" "ne" "" -}}
{{- range (sort $pages "Date" "desc") -}}
<a href="{{ .RelPermalink }}" class="scrolling-posts-item" style="background-image: url('{{ .Permalink }}{{ .Params.cover.image }}');">
<a href="{{ .RelPermalink }}" class="scrolling-posts-item" style="background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0.2)), url('{{ .Permalink }}{{ .Params.cover.image }}');">
<span class="section-badge">{{ .Section }}</span>
<span class="scrolling-posts-item-title">{{ .Title }}</span>
<p class="scrolling-posts-date">{{ .Date.Format "2006-01-02" }}</p>