File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed
themes/hugoplate/layouts/blog Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ defaultContentLanguage = 'en'
18
18
# defaultContentLanguageInSubdir need to be true if you want to use the language code as a subdirectory and language specific 404 page
19
19
defaultContentLanguageInSubdir = false
20
20
21
+ removePathAccents = true
22
+
21
23
# ########################## Services #############################
22
24
[services ]
23
25
# [services.googleAnalytics]
@@ -37,7 +39,6 @@ disableAliases = false
37
39
pagerSize = 10
38
40
path = ' page'
39
41
40
-
41
42
# ############################ Build ##############################
42
43
[build ]
43
44
[build .buildStats ]
Original file line number Diff line number Diff line change @@ -14,11 +14,27 @@ <h1 class="h2 mb-4">
14
14
</ h1 >
15
15
< ul class ="mb-4 ">
16
16
< li class ="mr-4 inline-block ">
17
- < a
18
- href ="{{ `authors/` | relLangURL }}{{ .Params.Author | urlize }}/ ">
19
- < i class ="fa-regular fa-circle-user mr-2 "> </ i
20
- > {{ .Params.author }}
21
- </ a >
17
+ {{- $authors := .Params.authors }}
18
+ {{- if $authors }}
19
+ {{- $last := index $authors (sub (len $authors) 1) }}
20
+ {{- range $index, $author := $authors }}
21
+ < a
22
+ href ="{{ `authors/` | relLangURL }}{{ $author | urlize }}/ ">
23
+ {{- if ne $author $last }}
24
+ < i class ="fa-regular fa-circle-user mr-2 "> </ i
25
+ > {{ $author }},
26
+ {{- else }}
27
+ {{ $author }}
28
+ {{- end }}
29
+ </ a >
30
+ {{- end }}
31
+ {{- else if .Params.author }}
32
+ < a
33
+ href ="{{ `authors/` | relLangURL }}{{ .Params.author | urlize }}/ ">
34
+ < i class ="fa-regular fa-circle-user mr-2 "> </ i
35
+ > {{ .Params.author }}
36
+ </ a >
37
+ {{- end }}
22
38
</ li >
23
39
{{ $categories:= .Params.categories }}
24
40
{{ if $categories }}
You can’t perform that action at this time.
0 commit comments