feat: Modification des titres
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Simon 2023-07-04 10:51:46 +02:00
parent 687d62711b
commit 33898d354f
3 changed files with 5 additions and 11 deletions

View File

@ -25,10 +25,10 @@ h1, h2, h3, h4, h5
font-weight: 600
text-transform: uppercase
h1
h1, .h1
text-align: center
text-transform: uppercase
color: var(--color-green)
color: var(--color-title)
margin: 0 1rem 1rem
padding: 1rem
font-size: 2.5rem

View File

@ -55,14 +55,8 @@ $size-news: 100px
display: block
h2
margin: .6rem 0
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
h3
margin: .3rem 0
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
.text
font-size: .9rem

View File

@ -7,7 +7,7 @@
<div class="actus">
{{ $actualites := sort (.Site.GetPage "/actualites/").Pages "Date" "desc" }}
<div class="news viemunicipale">
<h1>Le fil <strong>des actualités</strong></h1>
<h1>Le fil des <strong>actualités</strong></h1>
{{ $lastnews := first 4 (where $actualites "Params.event" false) }}
{{ $first := index (first 1 $lastnews) 0 }}
{{ $others := after 1 $lastnews }}
@ -23,7 +23,7 @@
</p>
</div>
<div class="news associations">
<h1>Les <strong>Évènements</strong> des associations</h1>
<h2 class="h1">Le fil des <strong>Évènements</strong></h2>
{{ $lastnews := first 4 (where $actualites "Params.event" true) }}
{{ $first := index (first 1 $lastnews) 0 }}
{{ $others := after 1 $lastnews }}
@ -35,7 +35,7 @@
{{ partial "article-preview.html" . }}
{{ end }}
<p>
<a href="/actualites/">Voir toutes les actualités</a>
<a href="/actualites/">Voir tous les évènements</a>
</p>
</div>
</div>