aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorSanjay T. Sharma <sanjay.t.sharma@gmail.com>2017-09-24 17:56:55 +0100
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-09-25 00:56:55 +0800
commitab7cdc5d3c20f03b1e22f4c201ba29af06d139cb (patch)
tree72c5097b037064188bfe5deed66bf58c490efa75 /layouts/partials
parent271f73a87fe152978daea55e6cfe2a3b6f3530fb (diff)
feat: provide the facility to customize date format (#10)
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/post/copyright.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post/copyright.html b/layouts/partials/post/copyright.html
index 813da5a..cbaefb7 100644
--- a/layouts/partials/post/copyright.html
+++ b/layouts/partials/post/copyright.html
@@ -7,7 +7,7 @@
</p>
<p class="copyright-item">
<span class="item-title">{{ $lang.copyright.lastMod }}</span>
- <span class="item-content">{{ .Lastmod.Format "2006-01-02" }}</span>
+ <span class="item-content">{{ .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</span>
</p>
{{ if $.Site.Params.linkToMarkDown -}}
{{ with $.OutputFormats.Get "markdown" -}}