aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/track.html
diff options
context:
space:
mode:
authorMantas <11616378+mistermantas@users.noreply.github.com>2019-01-24 19:23:35 +0200
committerGitHub <noreply@github.com>2019-01-24 19:23:35 +0200
commit4a968698e45ece04b25f41783298b9b397a191a1 (patch)
tree57ae06a3d7344f234ba71a12b7962144b8eb5472 /layouts/shortcodes/track.html
parent8a1aaf4737e90406119bdf5770937eea924729aa (diff)
cState is now stable on v3.0 - 2019-01-24 (info: #41)
Diffstat (limited to 'layouts/shortcodes/track.html')
-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 }}