add article header to single.html and add some demo articles
This commit is contained in:
12
layouts/partials/datetime.html
Normal file
12
layouts/partials/datetime.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{ $locales := index site.Data.locales .lang }}
|
||||
{{ $dateFormat := default "02/01/2006" $locales.df.post.strftime }}
|
||||
{{ $dayjsFormat := default "DD/MM/YYYY" $locales.df.post.dayjs }}
|
||||
|
||||
<time
|
||||
{{ if .class }}class="{{ .class }}"{{ end }}
|
||||
data-ts="{{ .date.Unix }}"
|
||||
data-df="{{ $dayjsFormat }}"
|
||||
{{ if .tooltip }}data-bs-toggle="tooltip" data-bs-placement="bottom"{{ end }}
|
||||
>
|
||||
{{ .date | time.Format $dateFormat }}
|
||||
</time>
|
Reference in New Issue
Block a user