From 175aac23e7bbee4f6b999484993fc274ea7d49a6 Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 2 Apr 2024 23:29:10 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20V=C3=A9rifie=20la=20section=20avec=20InS?= =?UTF-8?q?ection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5748210..0921dae 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,5 @@ {{ $isBig := (default .IsHome .Params.big) }} -{{ $isActualites := eq .Page.CurrentSection.Path "/actualites" }} +{{ $isActualites := $.InSection (.Site.GetPage "/actualites") }}
{{ if not $isActualites }} {{ $headless := .Site.GetPage "/" }}