Change name DateForm to DateFormat, complete git-footer.html upgrade

soper-book
Jordi Bares 2019-03-28 20:25:28 +00:00 committed by Alex Shpak
parent 062f14b9a1
commit a7e906feed
3 changed files with 4 additions and 4 deletions

View File

@ -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 "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 href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ .AuthorDate.Local.Format $.Site.Params.DateFormat }} by {{ .AuthorName }}' target="_blank" rel="noopener">
<img src="{{ "svg/code-merge.svg" | relURL }}" /> {{ .AuthorDate.Local.Format $.Site.Params.DateFormat }}
</a>
</div>
{{ end }}

View File

@ -6,7 +6,7 @@
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h2>
<h5>
<strong>{{ .Date.Format .Site.Params.DateForm }}</strong>
<strong>{{ .Date.Format .Site.Params.DateFormat }}</strong>
</h5>
<p class="markdown">
{{- .Summary -}}

View File

@ -2,7 +2,7 @@
<header>
<h1>{{ .Title }}</h1>
<h5>
<strong>{{ .Date.Format .Site.Params.DateForm }}</strong>
<strong>{{ .Date.Format .Site.Params.DateFormat }}</strong>
</h5>
</header>
<article class="markdown">