srctree

Gregory Mullen parent a02b685a 71ea7829
Replace .Author with taxonomies

inlinesplit
config.toml added: 10, removed: 9, total 1
@@ -5,7 +5,7 @@ uglyurls = true
enableRobotsTXT = true
[params]
email = 'grht@gr.ht'
author.displayname = 'Gray Hatter'
Author = 'Gray Hatter'
 
[permalinks]
posts = '/:year/:month/:day/:slug'
@@ -14,3 +14,8 @@ enableRobotsTXT = true
 
[markup.goldmark.renderer]
unsafe = true
 
 
[taxonomies]
tag = "tags"
author = "author"
 
layouts/_default/baseof.html added: 10, removed: 9, total 1
@@ -20,9 +20,6 @@
{{ block "title" . -}}
<header>
<h1 class="page-title">{{ .Title | markdownify }}</h1>
{{ if isset .Author "DisplayName" -}}
<p>Written by {{ .Author.DisplayName }}</p>
{{- end }}
</header>
{{- end }}
 
 
layouts/_default/post.html added: 10, removed: 9, total 1
@@ -8,8 +8,7 @@
<span itemprop="author" itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">
<a href="{{ .Site.BaseURL }}">
{{- .Author.DisplayName |
default .Site.Params.Author.DisplayName |
{{- .Params.Author | default .Site.Params.Author |
default "anonymous" | htmlEscape -}}
</a>
</span>