Skip to content

Commit

Permalink
Adds an author to blog posts. (#209)
Browse files Browse the repository at this point in the history
* Adds an author to blog posts.

See #113

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

Co-authored-by: Bud Parr <[email protected]>
  • Loading branch information
Beanow and Bud Parr committed Sep 30, 2019
1 parent 287b3ff commit 7cb108b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<h1 class="f1 athelas mb1">
{{- .Title -}}
</h1>
{{ with .Params.author }}
<p class="tracked">
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" -}}
Expand Down

0 comments on commit 7cb108b

Please sign in to comment.