refactor author handling
This commit is contained in:
parent
4eb2f4cbca
commit
5cd3426564
@ -23,14 +23,16 @@
|
|||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{{ range .Param "authors" }}
|
{{ with .Params.Author }}
|
||||||
{{ $name := . }}
|
{{ $key := . }}
|
||||||
{{ with $.Site.GetPage (printf "/authors/%s" $name | urlize) }}
|
{{ $author := index $.Site.Data.authors $key }}
|
||||||
|
|
||||||
|
{{ with $.Site.GetPage (printf "/authors/%s" $author.name | urlize) }}
|
||||||
<span class="post-footer__button">
|
<span class="post-footer__button">
|
||||||
<i class="fas fa-user post-footer__icon"></i>
|
<i class="fas fa-user post-footer__icon"></i>
|
||||||
<a class="post-footer__link" href="{{ .RelPermalink }}" title="Alle Artikel des Autors">{{ $name }}</a>
|
<a class="post-footer__link" href="{{ .RelPermalink }}" title="Alle Artikel des Autors">{{ $author.name }}</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Param "categories" }}
|
{{ range .Param "categories" }}
|
||||||
|
Reference in New Issue
Block a user