Improve taxonomy handling
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
18
layouts/partials/components/meta/index.html
Normal file
18
layouts/partials/components/meta/index.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="meta">
|
||||
<span class="date">{{ .Date | time.Format ":date_medium" }}</span>
|
||||
·
|
||||
{{ if eq .Kind "page" }}
|
||||
{{ range .Params.tags }}
|
||||
<a href="/tags/{{ . | urlize }}" class="tag">{{ . }}</a>
|
||||
·
|
||||
{{ end }}
|
||||
<span class="duration">
|
||||
{{ printf "%d min. read" .ReadingTime }}
|
||||
</span>
|
||||
{{ else }}
|
||||
{{ $count := len .Pages }}
|
||||
<span class="duration">
|
||||
{{ printf "%d %s" $count (cond (eq $count 1) "item" "items") }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
Reference in New Issue
Block a user