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
This commit is contained in:
Eli Uriegas
2017-04-03 17:30:55 -05:00
committed by Alexis Tacnet
parent a8f15571da
commit 798e0f9e00

View File

@@ -7,6 +7,13 @@
<div class="title-container">
{{ partial "page-heading" . }}
</div>
{{ if not .Params.noauthor }}
{{ if .Params.author }}
<div class="author-container">
<div class="author" title="{{ .Params.Author }}">{{ .Params.author }}</div>
</div>
{{end}}
{{end}}
<div class="meta">
<div class="date" title="{{ .Date.Format .Site.Params.dateformfull }}">{{ .Date.Format .Site.Params.dateform }}</div>
<div class="reading-time"><div class="middot"></div>{{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}</div>