Add dateformat config
This commit is contained in:
parent
268bc78b3f
commit
b79cb616ea
|
@ -22,6 +22,8 @@ disqusShortname = "yourdiscussshortname"
|
|||
avatarurl = "images/avatar.jpg"
|
||||
footercontent = "Enter a text here."
|
||||
|
||||
dateformat = "January 2, 2006"
|
||||
|
||||
hideCredits = false
|
||||
hideCopyright = false
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<ul>
|
||||
{{ range .Paginator.Pages }}
|
||||
<li>
|
||||
<span>{{ .Date.Format "January 2, 2006" }}</span><a href="{{ .URL }}">{{ .Title }}</a>
|
||||
<span>{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span><a href="{{ .URL }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<article>
|
||||
<header>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<h2 class="date">{{ .Date.Format "January 2, 2006" }}</h2>
|
||||
<h2 class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</h2>
|
||||
|
||||
{{ if eq .Params.math "true" }}
|
||||
<script type="text/javascript" async
|
||||
|
@ -38,5 +38,5 @@
|
|||
{{ if and (not (eq .Site.DisqusShortname "" )) (eq (.Params.disable_comments | default false) false)}}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
||||
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue