This commit is contained in:
20
layouts/taxonomy/list.html
Normal file
20
layouts/taxonomy/list.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "content" }}
|
||||
<div class="content section">
|
||||
<h1 class="subtitle is-3 has-text-centered has-text-weight-normal">All posts with the {{ title .Data.Singular }} "{{ .Title }}"</h1>
|
||||
<table class="table is-striped is-hoverable is-bordered mt-6">
|
||||
<tbody>
|
||||
{{ range (index .Site.Taxonomies.tags .Data.Term) }}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="section">
|
||||
<a href={{ printf "/%s" .Data.Plural }}>List of all {{ .Data.Plural }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
14
layouts/taxonomy/terms.html
Normal file
14
layouts/taxonomy/terms.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ define "content" }}
|
||||
<div class="content section">
|
||||
<h1 class="subtitle is-3 has-text-centered has-text-weight-normal">List of all {{ title .Data.Plural }}</h1>
|
||||
<div class="is-flex is-flex-direction-column is-flex-wrap-wrap">
|
||||
<ul class="mt-6">
|
||||
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
||||
{{ with $.Site.GetPage (printf "/%s" $name) }}
|
||||
<li><span class="tag has-background-grey-lighter is-medium"><a href="{{ .Permalink }}">{{ $name }}</a></span></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user