From 7cb108bd540da569ef2f73ac273db1662626f57c Mon Sep 17 00:00:00 2001
From: Robin van Boven <497556+Beanow@users.noreply.github.com>
Date: Mon, 30 Sep 2019 13:34:06 +0000
Subject: [PATCH] Adds an author to blog posts. (#209)

---
 layouts/_default/single.html |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fde3f74..79e6784 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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" -}}

--
Gitblit v1.10.0