mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
commit
e1efb10181
@ -90,6 +90,7 @@
|
||||
}
|
||||
|
||||
.article-time,
|
||||
.article-author,
|
||||
.article-translations {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@ -48,6 +48,19 @@
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
||||
{{ if (isset .Params "author") }}
|
||||
{{ $filename := .Params.author }}
|
||||
<div class="article-author">
|
||||
{{ partial "helper/icon" "user" }}
|
||||
{{ with (index $.Site.Data.authors $filename) }}
|
||||
{{ $author := index $.Site.Data.authors $filename }}
|
||||
{{ with (index $author "name") }}
|
||||
<a href="/author/{{index $author "id"}}">{{ index $author "name" }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .IsTranslated }}
|
||||
<footer class="article-translations">
|
||||
{{ partial "helper/icon" "language" }}
|
||||
|
Loading…
Reference in New Issue
Block a user