From 4ef28541b932dc0be609802503cef79407976a44 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Thu, 16 Jan 2025 18:07:17 +0100 Subject: [PATCH] add relpermalink condition --- 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 9129681f..1d19f515 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -88,7 +88,7 @@ {{ if and $top_banner.enable }} {{ if or (not $top_banner.temporarily.enable) (and $top_banner.temporarily.enable (and (le ($top_banner.temporarily.start_date | time.AsTime) now) (ge ($top_banner.temporarily.end_date | time.AsTime) now))) }} {{ with $top_banner }} -{{ if .large }} +{{ if and .large (eq $.Page.RelPermalink "/") }} {{ $title := "Willkommen auf der Website des Georg-Cantor-Gymnasiums!" }} {{ partial "modal" (dict "title" $title "content" (.text | markdownify)) }}