diff --git a/layouts/_partials/sidebar.html b/layouts/_partials/sidebar.html index eb0bd75..696339e 100644 --- a/layouts/_partials/sidebar.html +++ b/layouts/_partials/sidebar.html @@ -97,7 +97,7 @@ "header" (i18n "sibling-articles") "id" "siblings") -}} {{- end -}} - {{- if not .Site.Params.hideSectionArticles -}} + {{- if not (.Param "hideSectionArticles") -}} {{- $section := or .Section "posts" -}} {{- $header := or (i18n (printf "articles-in-%s" $section)) (i18n "articles-in-section") -}} {{- $related := first 20 (where .Site.RegularPages "Section" $section) -}} diff --git a/layouts/domains/taxonomy.html b/layouts/domains/taxonomy.html deleted file mode 100644 index 23b3933..0000000 --- a/layouts/domains/taxonomy.html +++ /dev/null @@ -1,32 +0,0 @@ -{{ define "main" }} - -
- -
-
-
-
-

{{or (i18n .Title) .Title }}

-
-
-
-
- -
- {{- $site := .Site }} - {{ range .Data.Terms.ByCount -}} - - {{- end }} -
- -
- -{{ end }} diff --git a/layouts/domains/terms.html b/layouts/domains/terms.html deleted file mode 100644 index 23b3933..0000000 --- a/layouts/domains/terms.html +++ /dev/null @@ -1,32 +0,0 @@ -{{ define "main" }} - -
- -
-
-
-
-

{{or (i18n .Title) .Title }}

-
-
-
-
- -
- {{- $site := .Site }} - {{ range .Data.Terms.ByCount -}} - - {{- end }} -
- -
- -{{ end }} diff --git a/layouts/list.html b/layouts/home.html similarity index 100% rename from layouts/list.html rename to layouts/home.html diff --git a/layouts/section.html b/layouts/section.html new file mode 100644 index 0000000..b15bfd4 --- /dev/null +++ b/layouts/section.html @@ -0,0 +1,39 @@ +{{ define "main" }} + +
+ + {{- $parents := .Params.Topics -}} + {{- $mainWidth := or (and $parents "8") "12" -}} +
+
+
+ {{ if .Title -}} +
+

{{ .Title }}

+
+ {{- end }} +
+
+

{{ .Content }}

+
+
+
+
+ {{ partial "parent-topics.html" . }} +
+ +
+ {{ $section := or .Section .Site.Params.homeSection "posts" }} + {{ $paginator := .Paginate (where .Site.RegularPages "Section" $section) }} + {{ range $paginator.Pages }} + {{ partial "card" . }} + {{ end }} +
+ +
+ {{ partial "pagination.html" . }} +
+ +
+ +{{ end }}