fix: Vérifie la section avec InSection
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2024-04-02 23:29:10 +02:00
parent 99722d5857
commit 175aac23e7
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{{ $isBig := (default .IsHome .Params.big) }} {{ $isBig := (default .IsHome .Params.big) }}
{{ $isActualites := eq .Page.CurrentSection.Path "/actualites" }} {{ $isActualites := $.InSection (.Site.GetPage "/actualites") }}
<header class="header{{ if $isBig }} home{{ end }}{{ if $isActualites }} actu{{ end }}"> <header class="header{{ if $isBig }} home{{ end }}{{ if $isActualites }} actu{{ end }}">
{{ if not $isActualites }} {{ if not $isActualites }}
{{ $headless := .Site.GetPage "/" }} {{ $headless := .Site.GetPage "/" }}