Compare commits
No commits in common. "1952497883377061dc7f0e50eade4c9bf277dd1f" and "12f14dfc68628e8ebe3cb8e586c648258780d33c" have entirely different histories.
1952497883
...
12f14dfc68
3 changed files with 12 additions and 11 deletions
|
|
@ -2,7 +2,9 @@
|
||||||
categories: article
|
categories: article
|
||||||
title: 'DIDAY.org mit Unterstützung des CCCHH'
|
title: 'DIDAY.org mit Unterstützung des CCCHH'
|
||||||
date: '2026-06-07T14:00:00+02:00' # date of the event
|
date: '2026-06-07T14:00:00+02:00' # date of the event
|
||||||
|
publishDate: '2026-06-07T14:00:00+02:00' # when to publish
|
||||||
draft: false
|
draft: false
|
||||||
|
location: Z9
|
||||||
authors:
|
authors:
|
||||||
- stb
|
- stb
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,7 @@
|
||||||
{{- $events := where (.Site.GetPage "blog").Pages ".Params.categories" "event" }}
|
{{- $events := where (.Site.GetPage "blog").Pages ".Params.categories" "event" }}
|
||||||
{{- $lookback := time.ParseDuration "-6h" }}
|
{{- $lookback := time.ParseDuration "-6h" }}
|
||||||
{{- $upcoming := where $events ".Params.date" "ge" (time.Now.Add $lookback) }}
|
{{- $upcoming := where $events ".Params.date" "ge" (time.Now.Add $lookback) }}
|
||||||
|
{{ if $upcoming }}
|
||||||
{{- $article := where (.Site.GetPage "blog").Pages ".Params.categories" "article" }}
|
|
||||||
{{- $articleDisplayTime := time.ParseDuration "-126h" }}
|
|
||||||
{{- $articleNew := where $article ".Params.publishDate" "ge" (time.Now.Add $articleDisplayTime) }}
|
|
||||||
|
|
||||||
{{ if or $upcoming $articleNew }}
|
|
||||||
<div class="announcements">
|
<div class="announcements">
|
||||||
<h2 id="neuigkeiten" class="on-hover-trg">Neuigkeiten <a href="#neuigkeiten" class="on-hover"><i class="fa-solid fa-link small"></i></a></h2>
|
<h2 id="neuigkeiten" class="on-hover-trg">Neuigkeiten <a href="#neuigkeiten" class="on-hover"><i class="fa-solid fa-link small"></i></a></h2>
|
||||||
{{- range $upcoming.ByDate }}
|
{{- range $upcoming.ByDate }}
|
||||||
|
|
@ -29,7 +24,15 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- $article := where (.Site.GetPage "blog").Pages ".Params.categories" "article" }}
|
||||||
|
{{- $articleDisplayTime := time.ParseDuration "-30h" }}
|
||||||
|
{{- $articleNew := where $article ".Params.publishDate" "ge" (time.Now.Add $articleDisplayTime) }}
|
||||||
|
{{ if $articleNew }}
|
||||||
|
<div class="announcements">
|
||||||
|
<h2 id="neuigkeiten" class="on-hover-trg">Neuigkeiten <a href="#neuigkeiten" class="on-hover"><i class="fa-solid fa-link small"></i></a></h2>
|
||||||
{{- range $articleNew.ByDate }}
|
{{- range $articleNew.ByDate }}
|
||||||
<div class="announcement">
|
<div class="announcement">
|
||||||
{{- partial "blog-header.html" (dict "headingLink" true "level" 4 "reduced" true "page" . ) }}
|
{{- partial "blog-header.html" (dict "headingLink" true "level" 4 "reduced" true "page" . ) }}
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<div class="infos">
|
<div class="infos">
|
||||||
{{ if (eq .Params.categories "event") }}
|
|
||||||
<span class="li-space"><i class="fa-solid fa-calendar-day"></i> {{ .Date | time.Format "Mon, 2006-01-02 15:04" }}</span>
|
<span class="li-space"><i class="fa-solid fa-calendar-day"></i> {{ .Date | time.Format "Mon, 2006-01-02 15:04" }}</span>
|
||||||
{{- else }}
|
|
||||||
<span class="li-space"><i class="fa-solid fa-newspaper"></i> {{ .Date | time.Format "2006-01-02" }}</span>
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Params.location }}
|
{{- with .Params.location }}
|
||||||
<span class="li-space">
|
<span class="li-space">
|
||||||
<i class="fa-solid fa-location-dot"></i>
|
<i class="fa-solid fa-location-dot"></i>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue