fix: Vérifie la section avec InSection
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
99722d5857
commit
175aac23e7
|
@ -1,5 +1,5 @@
|
|||
{{ $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 }}">
|
||||
{{ if not $isActualites }}
|
||||
{{ $headless := .Site.GetPage "/" }}
|
||||
|
|
Loading…
Reference in New Issue