From 4a968698e45ece04b25f41783298b9b397a191a1 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Thu, 24 Jan 2019 19:23:35 +0200 Subject: cState is now stable on v3.0 - 2019-01-24 (info: #41) --- layouts/shortcodes/track.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'layouts/shortcodes') 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 @@ -({{ dateFormat "Jan 02, 2006 - 15:04" (.Get 0) }}) +{{ if .Site.Params.dateFormat }} + ({{ dateFormat .Site.Params.shortDateFormat (.Get 0) }}) +{{ else }} + ({{ dateFormat "15:04 — Jan 2" (.Get 0) }}) +{{ end }} -- cgit v1.2.3-70-g09d2