rework categories and authors
This commit is contained in:
parent
8c55c679f8
commit
eb0da04116
|
@ -1,5 +1,5 @@
|
|||
{{ define "main" }}
|
||||
<main class="content" role="main">
|
||||
<main class="content" role="main">
|
||||
{{ $paginator := .Paginate (where .Pages "Type" "post") }}
|
||||
{{ range $paginator.Pages }}
|
||||
<article class="blog-entry">
|
||||
|
@ -22,18 +22,26 @@
|
|||
<span class="break-wordwrap outline">
|
||||
<i class="fa fa-calendar"></i>
|
||||
</span>
|
||||
{{ with .Param "authors" }}
|
||||
{{ range .Param "authors" }}
|
||||
{{ $name := . }}
|
||||
{{ with $.Site.GetPage (printf "/authors/%s" $name | urlize) }}
|
||||
<span class="single_user break-wordwrap outline">
|
||||
<i class="fa fa-user"></i> <a href="{{ "authors" | relURL }}/{{ . | urlize }}" title="Alle Artikel des Autors">{{ . }}</a>
|
||||
<i class="fa fa-user"></i> <a href="{{ .RelPermalink }}" title="Alle Artikel des Autors">{{ $name }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ range .Param "categories" }}
|
||||
{{ $name := . }}
|
||||
<span class="outline">
|
||||
{{ with $.Site.GetPage (printf "/categories/%s" $name | urlize) }}
|
||||
<span class="break-wordwrap">
|
||||
<i class='fa fa-tags'></i>
|
||||
<a href="" title="Alle Artikel in ''"></a>
|
||||
<a href="{{ .RelPermalink }}" title="Alle Artikel in '{{ $name }}'">{{ $name }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</span>
|
||||
|
||||
{{ end }}
|
||||
</footer>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
Reference in New Issue
Block a user