chore: apply param to multiple authors as well

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
jolheiser 2023-03-09 16:37:57 -06:00
parent 544e5da694
commit 57c764754b
No known key found for this signature in database
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 2 additions and 2 deletions

View File

@ -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 }}

View File

@ -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 }}