mirror of https://gitea.com/gitea/theme.git
feat: allow for author_domain in props
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
0de5dfc0fe
commit
544e5da694
|
@ -20,7 +20,7 @@
|
|||
</a>{{ if ne $idx ($s.Get "len") }}, {{end}}
|
||||
{{- end }}
|
||||
{{ else }}
|
||||
<a class="author" href="https://gitea.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
<a class="author" href="https://{{ .Params.author_domain | default "gitea.com" }}/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</a>{{ if ne $idx ($s.Get "len") }}, {{end}}
|
||||
{{- end }}
|
||||
{{ else }}
|
||||
<a class="author" href="https://gitea.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
<a class="author" href="https://{{ .Params.author_domain | default "gitea.com" }}/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue