mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 22:14:22 +01:00
Change: configurable date format in site config
This commit is contained in:
parent
55ee7ee2e5
commit
8edb21d178
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@
|
|||
<h1>{{ .Title }}</h1>
|
||||
<ul class="list-inline mb-50">
|
||||
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
|
||||
<li class="list-inline-item">Published Date: {{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
|
||||
<li class="list-inline-item">Last Modified: {{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
|
||||
<li class="list-inline-item">Published Date: {{ with site.Params.dateFormat | default "2006-01-02" | .Date.Format }} {{ . }} {{ end }}</li>
|
||||
<li class="list-inline-item">Last Modified: {{ with site.Params.dateFormat | default "2006-01-02" | .Lastmod.Format }} {{ . }} {{ end }}</li>
|
||||
</ul>
|
||||
<img class="img-fluid mb-50 lozad" src="{{ .Params.Image | absURL }}" alt="blog-image">
|
||||
|
||||
|
|
Loading…
Reference in a new issue