fix date sorting
Some checks failed
website-main / prod-build (push) Failing after 14s
website-main / test-build (push) Failing after 6s

This commit is contained in:
2024-03-24 16:11:29 +01:00
parent 1287ea1d51
commit 942ef76fc9
5 changed files with 7 additions and 7 deletions

View File

@ -86,7 +86,7 @@
{{ $top_banner := .Site.Data.homepage.top_banner }}
{{ 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).Unix now.Unix ) (ge ($top_banner.temporarily.end_date | time.AsTime).Unix now.Unix))) }}
{{ 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 }}
<div id="top-banner" class="p-3" style="background: {{ .color }}" data-pagefind-ignore>
<div class="container">