summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-06-14 14:14:09 +0200
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-06-14 14:14:09 +0200
commit0701ab8b0bc319cd4d830d9ee0fca5df0c10425e (patch)
treeca7300e22983ba3f5b1b7569071868f8ae8eacd0
parent7b5eae687af595fcf52072a2f385b39a600ab06d (diff)
fixed eventdate not shown on single page
-rw-r--r--themes/fredo/layouts/single.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/themes/fredo/layouts/single.html b/themes/fredo/layouts/single.html
index 11efc31..6fa6c34 100644
--- a/themes/fredo/layouts/single.html
+++ b/themes/fredo/layouts/single.html
@@ -1,9 +1,13 @@
{{ define "main" }}
<article id="content">
{{ if eq .Type "posts" }}
- <section class="post-date">
- <p> {{ time.Format ":date_long" .PublishDate }} </p>
- </section>
+ {{ $showdate := .Date }}
+ {{ if .Param "eventdate" }}
+ {{ $showdate = .Param "eventdate" }}
+ {{ end }}
+ <section class="post-date">
+ <p> {{ time.Format ":date_long" $showdate }} </p>
+ </section>
{{ end }}
{{ if .Param "Image" }}
{{ $imagename := .Param "image" }}