This commit is contained in:
1
layouts/partials/data/related.html
Normal file
1
layouts/partials/data/related.html
Normal file
@ -0,0 +1 @@
|
||||
{{ return ((where .Site.RegularPages "Type" .Type) | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3) }}
|
1
layouts/partials/data/termin-upcoming.html
Normal file
1
layouts/partials/data/termin-upcoming.html
Normal file
@ -0,0 +1 @@
|
||||
{{ return or (ge (.date | time.AsTime) now) (and .enddate (ge (.enddate | time.AsTime) now)) }}
|
@ -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">
|
||||
|
@ -1,2 +0,0 @@
|
||||
{{ $related := (where .Site.RegularPages "Type" .Type) | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3 }}
|
||||
{{ return $related }}
|
Reference in New Issue
Block a user