mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-04-21 14:12:45 +00:00
Adds an author to blog posts. (#209)
* Adds an author to blog posts. See #113 * Feedback #209, fully contain author in {{with}} Co-authored-by: Bud Parr <budparr@gmail.com>
This commit is contained in:
parent
287b3ff5e9
commit
7cb108bd54
@ -18,6 +18,11 @@
|
|||||||
<h1 class="f1 athelas mb1">
|
<h1 class="f1 athelas mb1">
|
||||||
{{- .Title -}}
|
{{- .Title -}}
|
||||||
</h1>
|
</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 */}}
|
{{/* 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" }}">
|
<time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||||
{{- .Date.Format "January 2, 2006" -}}
|
{{- .Date.Format "January 2, 2006" -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user