Default to site.Author.name for post author.
This commit is contained in:
parent
f8857ed623
commit
6f2f3cd067
1 changed files with 3 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
|||
{{ with $.Param "author" }}<span class="author" itemprop="author">{{ . }}</span>{{ end -}}
|
||||
{{ if and .Date ($.Param "author") }} - {{ end -}}
|
||||
{{ with .Date }}<time class="created-date" datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ .Format ($.Param "dateformat" | default "2 January, 2006") }}</time>{{ end }}
|
||||
{{ with $.Param "author" | default site.Author.name }}<span class="author" itemprop="author">{{ . }}</span>{{ end -}}
|
||||
{{ if and .Date (or ($.Param "author") site.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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue