summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-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" }}