-
-
-
- {{ with .Content -}}
-
{{ . }}
- {{- end }}
- {{ with $children -}}
-
- {{- i18n "child-topics" -}}:
- {{ range . -}}
-
- {{ .Title }}
-
- {{- end }}
-
- {{- end }}
+
+
+
+
{{or (i18n .Title) .Title }}
- {{ partial "parent-topics.html" . }}
- {{ $paginator := .Paginate (.Data.Pages) }}
- {{ range $paginator.Pages }}
- {{ partial "card.html" . }}
- {{ end }}
-
-
-
- {{ partial "pagination.html" . }}
+ {{- $site := .Site }}
+ {{ range .Data.Terms.ByCount -}}
+
+ {{- end }}
+
{{ end }}
diff --git a/layouts/topics/list.html b/layouts/term.html
similarity index 100%
rename from layouts/topics/list.html
rename to layouts/term.html
diff --git a/layouts/topics/taxonomy.html b/layouts/topics/taxonomy.html
index 894572d..23b3933 100644
--- a/layouts/topics/taxonomy.html
+++ b/layouts/topics/taxonomy.html
@@ -1,48 +1,32 @@
{{ define "main" }}
-
+
- {{- $parents := .Params.Topics -}}
- {{- $mainWidth := or (and $parents "8") "12" -}}
- {{- $children := (where
- (where .Site.Pages "Section" "topics")
- "Params.topics" "intersect" (slice .Name)) -}}
-
-
-
-
- {{ with .Content -}}
-
{{ . }}
- {{- end }}
- {{ with $children -}}
-
- {{- i18n "child-topics" -}}:
- {{ range . -}}
-
- {{ .Title }}
-
- {{- end }}
-
- {{- end }}
+
+
+
+
{{or (i18n .Title) .Title }}
- {{ partial "parent-topics.html" . }}
- {{ $paginator := .Paginate (.Data.Pages) }}
- {{ range $paginator.Pages }}
- {{ partial "card.html" . }}
- {{ end }}
-
-
-
- {{ partial "pagination.html" . }}
+ {{- $site := .Site }}
+ {{ range .Data.Terms.ByCount -}}
+
+ {{- end }}
+
{{ end }}