Fix date
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
{{ . | time.Format $configDateFormat }}
|
||||
</time> |
|
||||
{{ end -}}
|
||||
{{ $published := .PublishDate }}
|
||||
{{ $modified := .GitInfo.AuthorDate }}
|
||||
{{ if ge $modified $published }}
|
||||
{{ $published := .PublishDate | time.Format ":date_medium" }}
|
||||
{{ $modified := .Lastmod | time.Format ":date_medium" }}
|
||||
{{ if ne $published $modified }}
|
||||
@@ -31,6 +34,7 @@
|
||||
</time> |
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
<i class="fa-regular fa-mug-tea"></i></i> Reading time {{.ReadingTime}} minutes |
|
||||
<i class="fa-regular fa-pen-nib"></i></i> Word count {{.WordCount}}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user