Files
cocoa-eh-hugo-theme/layouts/blog/single.html
Eli Uriegas 798e0f9e00 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
2017-04-04 22:28:03 +02:00

36 lines
1.4 KiB
HTML

{{ partial "header.html" . }}
<section class="main post non-narrow zero-top-spacing">
<div class="container">
<div class="content">
<div class="front-matter">
<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>
</div>
</div>
<div class="markdown">
{{ partial "content" . }}
<br>
<p><a href="{{ .Section | absURL }}">Back to posts</a></p>
</div>
<br>
<div class="disqus">
{{ template "_internal/disqus.html" . }}
</div>
</div>
</div>
</section>
{{ partial "footer.html" . }}