summaryrefslogtreecommitdiffstats
path: root/layouts/partials/author.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-09-29 15:54:01 +0200
committerSerghei Iakovlev <git@serghei.pl>2024-09-29 18:15:42 +0200
commit0882a21997b0830f43643cac9f0de4beaa698988 (patch)
tree581a1dea498805ef5b9259fbf095b5546d705a78 /layouts/partials/author.html
parentec19cd59b5fc2ee4dc12b65647099c595984c075 (diff)
downloadgohugo-theme-ed-0882a21997b0830f43643cac9f0de4beaa698988.tar.gz
Rework author configuration
Diffstat (limited to 'layouts/partials/author.html')
-rw-r--r--layouts/partials/author.html14
1 files changed, 0 insertions, 14 deletions
diff --git a/layouts/partials/author.html b/layouts/partials/author.html
deleted file mode 100644
index 4ca1209..0000000
--- a/layouts/partials/author.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{{- $siteAuthor := partial "site-author.html" . -}}
-
-{{- /* First, check for current page author(s) */}}
-{{- if .Params.author }}
- {{- $author_type := (printf "%T" .Params.author) }}
- {{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
- {{- (delimit .Params.author ", " ) }}
- {{- else }}
- {{- .Params.author }}
- {{- end }}
-{{- /* Otherwise, get site authors */}}
-{{- else if $siteAuthor.name }}
- {{- $siteAuthor.name }}
-{{- end -}}