mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
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:

committed by
Alexis Tacnet

parent
a8f15571da
commit
798e0f9e00
@@ -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>
|
||||
|
Reference in New Issue
Block a user