hackertours-theme/layouts/_partials/author-date.html
2025-04-11 15:09:40 +02:00

3 lines
376 B
HTML

{{ with .Params.author | default site.Params.author.name }}<span class="author" itemprop="author">{{ . }}</span>{{ end -}}
{{ if and .Date (or .Params.author site.Params.author.name) }} - {{ end -}}
{{ with .Date }}<time class="created-date" datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ .Format ($.Param "dateformat" | default "2 January, 2006") }}</time>{{ end }}