Theme date formatting in config file
This commit is contained in:
parent
d4abb9d34b
commit
062f14b9a1
4 changed files with 7 additions and 4 deletions
|
@ -84,6 +84,9 @@ enableGitInfo: true
|
||||||
disableKinds: ["taxonomy", "taxonomyTerm"]
|
disableKinds: ["taxonomy", "taxonomyTerm"]
|
||||||
|
|
||||||
params:
|
params:
|
||||||
|
# Configure the date format utilised on the pages - TODO, review git-footer.html
|
||||||
|
DateForm: "January 2, 2006"
|
||||||
|
|
||||||
# (Optional, default true) Show or hide table of contents globally
|
# (Optional, default true) Show or hide table of contents globally
|
||||||
# You can also specify this parameter per page in front matter
|
# You can also specify this parameter per page in front matter
|
||||||
BookShowToC: true
|
BookShowToC: true
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div class="align-center book-git-footer {{ if not .GitInfo }}justify-end{{ else }}justify-between{{ end }}">
|
<div class="align-center book-git-footer {{ if not .GitInfo }}justify-end{{ else }}justify-between{{ end }}">
|
||||||
{{ with .GitInfo }}
|
{{ with .GitInfo }}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ .AuthorDate.Local.Format "January 2, 2006 15:04 MST" }} by {{ .AuthorName }}' target="_blank" rel="noopener">
|
<a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ .AuthorDate.Local.Format "2 January 2 2006 15:04 MST" }} by {{ .AuthorName }}' target="_blank" rel="noopener">
|
||||||
<img src="{{ "svg/code-merge.svg" | relURL }}" /> {{ .AuthorDate.Local.Format "Last Modified Jan 2, 2006" }}
|
<img src="{{ "svg/code-merge.svg" | relURL }}" /> {{ .AuthorDate.Local.Format "Last Modified 2 January 2006 15:04 MST" }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<h5>
|
<h5>
|
||||||
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
|
<strong>{{ .Date.Format .Site.Params.DateForm }}</strong>
|
||||||
</h5>
|
</h5>
|
||||||
<p class="markdown">
|
<p class="markdown">
|
||||||
{{- .Summary -}}
|
{{- .Summary -}}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<header>
|
<header>
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<h5>
|
<h5>
|
||||||
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
|
<strong>{{ .Date.Format .Site.Params.DateForm }}</strong>
|
||||||
</h5>
|
</h5>
|
||||||
</header>
|
</header>
|
||||||
<article class="markdown">
|
<article class="markdown">
|
||||||
|
|
Loading…
Reference in a new issue