Skip to content

Commit

Permalink
Add author field to blog (#322)
Browse files Browse the repository at this point in the history
* Add author field

* Check if author exists
  • Loading branch information
Alex Beattie authored Feb 21, 2022
1 parent fade059 commit c88d3a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ <h1 class="bold-title is-1">{{ .Title | markdownify }}</h1>
<h2 class="title is-1 top-pad strong-post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h2>
{{ if .Params.author }}
<h4 class="title is-4">
By {{ .Params.author | markdownify }}
</h4>
{{ end }}
<div class="post-data">
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }}{{ end }}
{{ if .Site.Params.showReadingTime | default true }}
Expand Down

0 comments on commit c88d3a3

Please sign in to comment.