Feedback #209, fully contain author in {{with}}

Co-authored-by: Bud Parr <budparr@gmail.com>
This commit is contained in:
Robin van Boven 2019-09-29 19:13:01 +02:00 committed by GitHub
parent 7e1fb30f31
commit f419d83537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,11 @@
<h1 class="f1 athelas mb1">
{{- .Title -}}
</h1>
{{ with .Params.author }}
<p class="tracked">
{{ with .Params.author }}By <b>{{ . | markdownify }}</b>{{ end}}
By <strong>{{ . | markdownify }}</strong>
</p>
{{ end }}
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
<time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format "January 2, 2006" -}}