Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattbutton/silhouette-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html29
1 files changed, 16 insertions, 13 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index fc29341..04bef9a 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -50,23 +50,26 @@
<div class="feature-image-text">
<h1 class="text-center">{{ .Title }}</h1>
- {{ $title := urlize .Title }}
- {{ with .Site.Taxonomies.categories }}
- {{ range $name, $taxonomy := . }}
- {{ $term := urlize $name }}
- {{ if eq $term $title }}
- A {{ $taxonomy.Count }}-post collection
+ {{ if eq .Type "categories" }}
+ {{ $title := urlize .Title }}
+ {{ with .Site.Taxonomies.categories }}
+ {{ range $name, $taxonomy := . }}
+ {{ $term := urlize $name }}
+ {{ if eq $term $title }}
+ A {{ $taxonomy.Count }}-post collection
+ {{ end }}
{{ end }}
{{ end }}
{{ end }}
-
- {{ $title := urlize .Title }}
- {{ with .Site.Taxonomies.tags }}
- {{ range $name, $taxonomy := . }}
- {{ $term := urlize $name }}
- {{ if eq $term $title }}
- A {{ $taxonomy.Count }}-post collection
+ {{ if eq .Type "tags" }}
+ {{ $title := urlize .Title }}
+ {{ with .Site.Taxonomies.tags }}
+ {{ range $name, $taxonomy := . }}
+ {{ $term := urlize $name }}
+ {{ if eq $term $title }}
+ A {{ $taxonomy.Count }}-post collection
+ {{ end }}
{{ end }}
{{ end }}
{{ end }}