Taxonomy initial commit, tags and categories (#90)

* Taxonomy initial commit, tags and categories

* WIP: Show in footer for comparison

* Fix post meta
This commit is contained in:
Khosrow Moossavi
2018-10-27 08:43:26 -04:00
committed by Luiz F. A. de Prá
parent 764b9ffef3
commit fd3ec89897
9 changed files with 70 additions and 27 deletions

View File

@@ -1,5 +1,12 @@
<section class="container list">
<h1 class="title">{{ .Title }}</h1>
<h1 class="title">
{{- if eq .Kind "taxonomy" -}}
{{- .Data.Singular | title -}}
{{- print ": " -}}
{{- end -}}
{{- .Title -}}
</h1>
<ul>
{{ range .Paginator.Pages }}
<li>

View File

@@ -0,0 +1,9 @@
<div class="categories">
<i class="fas fa-folder"></i>
{{- range $index, $el := . -}}
{{- if gt $index 0 }}
<span class="separator"></span>
{{- end }}
<a href="{{ ( print "categories/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
{{- end -}}
</div>

View File

@@ -0,0 +1,9 @@
<div class="tags">
<i class="fas fa-tag"></i>
{{- range $index, $el := . -}}
{{- if gt $index 0 }}
<span class="separator"></span>
{{- end }}
<a href="{{ ( print "tags/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
{{- end -}}
</div>