mirror of https://gitea.com/gitea/theme.git
feat: multiple authors
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
7890d3276f
commit
6fa26ea4b3
|
@ -15,12 +15,12 @@
|
|||
{{ $s.Set "len" (len .Params.authors) }}
|
||||
{{ $s.Add "len" -1 }}
|
||||
{{ range $idx, $author := .Params.authors -}}
|
||||
<a href="https://gitea.com/{{ $author | default $.Site.Params.author }}">
|
||||
<a class="author" href="https://gitea.com/{{ $author | default $.Site.Params.author }}">
|
||||
{{ $author | default $.Site.Params.author }}
|
||||
</a>{{ if ne $idx ($s.Get "len") }}, {{end}}
|
||||
{{- end }}
|
||||
{{ else }}
|
||||
<a href="https://gitea.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
<a class="author" href="https://gitea.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
{{ $s.Set "len" (len .Params.authors) }}
|
||||
{{ $s.Add "len" -1 }}
|
||||
{{ range $idx, $author := .Params.authors -}}
|
||||
<a href="https://gitea.com/{{ $author | default $.Site.Params.author }}">
|
||||
<a class="author" href="https://gitea.com/{{ $author | default $.Site.Params.author }}">
|
||||
{{ $author | default $.Site.Params.author }}
|
||||
</a>{{ if ne $idx ($s.Get "len") }}, {{end}}
|
||||
{{- end }}
|
||||
{{ else }}
|
||||
<a href="https://gitea.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
<a class="author" href="https://gitea.com/{{ .Params.author | default .Site.Params.author }}">
|
||||
{{ .Params.author | default .Site.Params.author }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
|
@ -45,6 +45,10 @@ $tertiary: #4183c4;
|
|||
}
|
||||
}
|
||||
|
||||
a.author {
|
||||
display: inline-block !important;
|
||||
}
|
||||
|
||||
.page .card{
|
||||
margin-bottom: 2em;
|
||||
|
||||
|
@ -57,7 +61,7 @@ $tertiary: #4183c4;
|
|||
border-radius: 0.2em;
|
||||
|
||||
.media-content a{
|
||||
display: inline-block;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue