diff options
author | Christoph Cullmann <cullmann@kde.org> | 2022-10-21 21:09:12 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2022-10-21 21:09:12 +0200 |
commit | ec19540d9299cd65b3598bcb0acb69a6545c6e10 (patch) | |
tree | 7958239128857bf857da542da2360507feccec80 /themes/PaperMod/layouts/partials/author.html | |
parent | 9e3457474b73741354cf222eb419e4733c2aac20 (diff) |
add simple theme
Diffstat (limited to 'themes/PaperMod/layouts/partials/author.html')
m--------- | themes/PaperMod | 0 | ||||
-rw-r--r-- | themes/PaperMod/layouts/partials/author.html | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 -Subproject 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cdd 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 -}} |