From 798e0f9e0097962e8d566b240fe7b1c401667977 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Mon, 3 Apr 2017 17:30:55 -0500 Subject: [PATCH] Adds author information on blog posts Simply just adds names based on front matter in the post itself. Can be fully disabled in the `config.toml` with the `noauthor` parameter --- layouts/blog/single.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/layouts/blog/single.html b/layouts/blog/single.html index f60a25a..7452407 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -7,6 +7,13 @@
{{ partial "page-heading" . }}
+ {{ if not .Params.noauthor }} + {{ if .Params.author }} +
+
{{ .Params.author }}
+
+ {{end}} + {{end}}
{{ .Date.Format .Site.Params.dateform }}
{{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}