aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/track.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/shortcodes/track.html b/layouts/shortcodes/track.html
index 3a80221..9fe4597 100644
--- a/layouts/shortcodes/track.html
+++ b/layouts/shortcodes/track.html
@@ -1 +1,5 @@
-<span class="faded">({{ dateFormat "Jan 02, 2006 - 15:04" (.Get 0) }})</span>
+{{ if .Site.Params.dateFormat }}
+ <span class="faded">({{ dateFormat .Site.Params.shortDateFormat (.Get 0) }})</span>
+{{ else }}
+ <span class="faded">({{ dateFormat "15:04 — Jan 2" (.Get 0) }})</span>
+{{ end }}