feat: multiple authors

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
jolheiser 2023-01-24 23:39:44 -06:00
parent 7890d3276f
commit 6fa26ea4b3
No known key found for this signature in database
GPG Key ID: B853ADA5DA7BBF7A
3 changed files with 9 additions and 5 deletions

View File

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

View File

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

View File

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