commit 4cf88789bdae473748ac68c59c6fdb2f836692d0 parent e58c6a71fc1cd5837c383ed6b4a7e02c5ab0f1af Author: Pollux <pollux@pollux.codes> Date: Thu, 11 Sep 2025 04:59:31 +0000 Add support for website-wide banner Signed-off-by: Pollux <pollux@pollux.codes> Diffstat:
A | layouts/partials/banner.html | | | 1 | + |
M | layouts/partials/header.html | | | 5 | +++++ |
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/header.html b/layouts/partials/header.html @@ -12,4 +12,9 @@ <a href="/index.xml" download>rss</a> </span> <hr> + {{ $banner := partial "banner.html" }} + {{ if gt (len $banner) 1 }} + <p style="text-align:center">{{ $banner }}</p> + <hr> + {{ end }} </header>