Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <24644237+victoriadrake@users.noreply.github.com>2022-02-22 17:06:29 +0300
committerGitHub <noreply@github.com>2022-02-22 17:06:29 +0300
commit7694f9b1b47949f62a24fabd54d795df36942425 (patch)
tree4aabb9178e328907765e4bae6d1c0f66268767e4 /layouts
parentc88d3a359d04b91ad269d68720f2b80243c498da (diff)
Introduction v6.0.0 (#329)
* Simplify dark theme - Make dark theme less awful (sorry about that) * Update exampleSite posts * Add support for multiple authors per post (#328)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/blog/single.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index 773e67c..b116e40 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -11,7 +11,13 @@
</h2>
{{ if .Params.author }}
<h4 class="title is-4">
- By {{ .Params.author | markdownify }}
+ {{ $data := .Params.author }}
+ By&nbsp;{{- range first 1 $data -}}
+ {{ . | markdownify }}
+ {{- end -}}
+ {{- range after 1 $data -}}
+ ,&nbsp;{{ . | markdownify }}
+ {{- end -}}
</h4>
{{ end }}
<div class="post-data">
@@ -55,7 +61,7 @@
<p>
{{ $taxonomy_term | title }}:
{{ range $key, $value := $taxonomy }}
- <a href="{{ (printf " /%s/" $taxonomy_term) | relLangURL }}{{ . | urlize }}">
+ <a href="{{ (printf "/%s/" $taxonomy_term) | relLangURL }}{{ . | urlize }}">
{{ $value }}</a>{{ if ne (add $key 1) $len }},{{ end }}
{{ end }}
</p>