Adds an author to blog posts.

See #113
This commit is contained in:
Robin IT 2019-09-17 19:31:36 +02:00
parent c474ce0c66
commit 7e1fb30f31

View File

@ -18,6 +18,9 @@
<h1 class="f1 athelas mb1">
{{- .Title -}}
</h1>
<p class="tracked">
{{ with .Params.author }}By <b>{{ . | markdownify }}</b>{{ end}}
</p>
{{/* 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" -}}