diff options
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | layouts/partials/docs/git-footer.html | 4 | ||||
-rw-r--r-- | layouts/posts/list.html | 2 | ||||
-rw-r--r-- | layouts/posts/single.html | 2 |
4 files changed, 7 insertions, 4 deletions
@@ -84,6 +84,9 @@ enableGitInfo: true disableKinds: ["taxonomy", "taxonomyTerm"] 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 # You can also specify this parameter per page in front matter BookShowToC: true diff --git a/layouts/partials/docs/git-footer.html b/layouts/partials/docs/git-footer.html index 1fc589d..f9dccdf 100644 --- a/layouts/partials/docs/git-footer.html +++ b/layouts/partials/docs/git-footer.html @@ -2,8 +2,8 @@ <div class="align-center book-git-footer {{ if not .GitInfo }}justify-end{{ else }}justify-between{{ end }}"> {{ with .GitInfo }} <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"> - <img src="{{ "svg/code-merge.svg" | relURL }}" /> {{ .AuthorDate.Local.Format "Last Modified Jan 2, 2006" }} + <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 2 January 2006 15:04 MST" }} </a> </div> {{ end }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 4756d74..0821998 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -6,7 +6,7 @@ <a href="{{ .RelPermalink }}">{{ .Title }}</a> </h2> <h5> - <strong>{{ .Date.Format "January 2, 2006" }}</strong> + <strong>{{ .Date.Format .Site.Params.DateForm }}</strong> </h5> <p class="markdown"> {{- .Summary -}} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 6b0712e..45ff3c7 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -2,7 +2,7 @@ <header> <h1>{{ .Title }}</h1> <h5> - <strong>{{ .Date.Format "January 2, 2006" }}</strong> + <strong>{{ .Date.Format .Site.Params.DateForm }}</strong> </h5> </header> <article class="markdown"> |