diff options
author | Alex Beattie <Alexander.beattie@quarkworks.co> | 2022-02-21 21:08:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 21:08:45 +0300 |
commit | c88d3a359d04b91ad269d68720f2b80243c498da (patch) | |
tree | e32a77638670b6843d1237e85053f5cc09c20643 | |
parent | fade059bf543c62cb7a58e19137b0118bc20fc7d (diff) |
Add author field to blog (#322)
* Add author field
* Check if author exists
-rw-r--r-- | layouts/blog/single.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 219f3b6..773e67c 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -9,6 +9,11 @@ <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 }} |