From ec19540d9299cd65b3598bcb0acb69a6545c6e10 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Fri, 21 Oct 2022 21:09:12 +0200 Subject: add simple theme --- themes/PaperMod | 1 - themes/PaperMod/layouts/partials/author.html | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) delete mode 160000 themes/PaperMod create mode 100644 themes/PaperMod/layouts/partials/author.html (limited to 'themes/PaperMod/layouts/partials/author.html') diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 index 3a0a481..0000000 --- a/themes/PaperMod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cddd diff --git a/themes/PaperMod/layouts/partials/author.html b/themes/PaperMod/layouts/partials/author.html new file mode 100644 index 0000000..8f2758f --- /dev/null +++ b/themes/PaperMod/layouts/partials/author.html @@ -0,0 +1,9 @@ +{{- if or .Params.author site.Params.author }} +{{- $author := (.Params.author | default site.Params.author) }} +{{- $author_type := (printf "%T" $author) }} +{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }} +{{- (delimit $author ", " ) }} +{{- else }} +{{- $author }} +{{- end }} +{{- end -}} -- cgit v1.2.3