Made date format configurable
Can be configured in config.toml Params.dateFormat
This commit is contained in:
parent
2b485bb5da
commit
0338abd814
@ -11,6 +11,7 @@ pygmentCodeFences = true
|
|||||||
subtitle = "Build a beautiful and simple website in minutes"
|
subtitle = "Build a beautiful and simple website in minutes"
|
||||||
logo = "img/avatar-icon.png"
|
logo = "img/avatar-icon.png"
|
||||||
favicon = "img/favicon.ico"
|
favicon = "img/favicon.ico"
|
||||||
|
dateFormat = "January 2, 2006"
|
||||||
commit = false
|
commit = false
|
||||||
rss = true
|
rss = true
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="post-meta">
|
<p class="post-meta">
|
||||||
Posted on {{ .Date.Format "January 2, 2006" }}
|
Posted on {{ .Date.Format .Site.Params.dateFormat }}
|
||||||
</p>
|
</p>
|
||||||
<div class="post-entry">
|
<div class="post-entry">
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="post-meta">
|
<p class="post-meta">
|
||||||
Posted on {{ .Date.Format "January 2, 2006" }}
|
Posted on {{ .Date.Format .Site.Params.dateFormat }}
|
||||||
</p>
|
</p>
|
||||||
<div class="post-entry">
|
<div class="post-entry">
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if eq .Type "post" }}
|
{{ if eq .Type "post" }}
|
||||||
<span class="post-meta">Posted on {{ .Date.Format "January 2, 2006" }}</span>
|
<span class="post-meta">Posted on {{ .Date.Format .Site.Params.dateFormat }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user