mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
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:
committed by
Luiz F. A. de Prá
parent
764b9ffef3
commit
fd3ec89897
@@ -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>
|
||||
|
||||
9
layouts/partials/taxonomy/categories.html
Normal file
9
layouts/partials/taxonomy/categories.html
Normal 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>
|
||||
9
layouts/partials/taxonomy/tags.html
Normal file
9
layouts/partials/taxonomy/tags.html
Normal 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>
|
||||
Reference in New Issue
Block a user