mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
feature: 作者名を表示
This commit is contained in:
parent
196116f20d
commit
6e63590ddd
@ -90,6 +90,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.article-time,
|
.article-time,
|
||||||
|
.article-author,
|
||||||
.article-translations {
|
.article-translations {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -48,6 +48,19 @@
|
|||||||
</footer>
|
</footer>
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ if .IsTranslated }}
|
||||||
<footer class="article-translations">
|
<footer class="article-translations">
|
||||||
{{ partial "helper/icon" "language" }}
|
{{ partial "helper/icon" "language" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user