mirror of https://gitea.com/gitea/theme.git
chore: apply param to multiple authors as well
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
544e5da694
commit
57c764754b
|
@ -15,7 +15,7 @@
|
|||
{{ $s.Set "len" (len .Params.authors) }}
|
||||
{{ $s.Add "len" -1 }}
|
||||
{{ range $idx, $author := .Params.authors -}}
|
||||
<a class="author" href="https://gitea.com/{{ $author | default $.Site.Params.author }}">
|
||||
<a class="author" href="https://{{ $.Params.author_domain | default "gitea.com" }}/{{ $author | default $.Site.Params.author }}">
|
||||
{{ $author | default $.Site.Params.author }}
|
||||
</a>{{ if ne $idx ($s.Get "len") }}, {{end}}
|
||||
{{- end }}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{{ $s.Set "len" (len .Params.authors) }}
|
||||
{{ $s.Add "len" -1 }}
|
||||
{{ range $idx, $author := .Params.authors -}}
|
||||
<a class="author" href="https://gitea.com/{{ $author | default $.Site.Params.author }}">
|
||||
<a class="author" href="https://{{ $.Params.author_domain | default "gitea.com" }}/{{ $author | default $.Site.Params.author }}">
|
||||
{{ $author | default $.Site.Params.author }}
|
||||
</a>{{ if ne $idx ($s.Get "len") }}, {{end}}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in New Issue