mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-04-15 21:28:32 +02:00
Update: dateFormat
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
|
||||
{{- $dateHuman := .Date | time.Format (or site.Params.dateFormat "2006-01-02") -}}
|
||||
<time class="published-date" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}} {{- $dateHuman := .Date |
|
||||
time.Format (or site.Params.dateFormat "2006-01-02") -}}
|
||||
<time class="published-date" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
|
||||
Reference in New Issue
Block a user