summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head/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/head/author.html
parentec19cd59b5fc2ee4dc12b65647099c595984c075 (diff)
downloadgohugo-theme-ed-0882a21997b0830f43643cac9f0de4beaa698988.tar.gz
Rework author configuration
Diffstat (limited to 'layouts/partials/head/author.html')
-rw-r--r--layouts/partials/head/author.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/head/author.html b/layouts/partials/head/author.html
new file mode 100644
index 0000000..94788e9
--- /dev/null
+++ b/layouts/partials/head/author.html
@@ -0,0 +1,13 @@
+{{- $author := "" -}}
+
+{{- with .Params.author -}}
+ {{- if (reflect.IsSlice .) -}}
+ {{- $author = delimit . ", " -}}
+ {{- else -}}
+ {{- $author = . -}}
+ {{- end -}}
+{{- else -}}
+ {{- $author = site.Params.author.name -}}
+{{- end -}}
+
+{{- return $author -}}