diff --git a/layouts/_default/_markup/render-link.html b/layouts/_markup/render-link.html similarity index 100% rename from layouts/_default/_markup/render-link.html rename to layouts/_markup/render-link.html diff --git a/layouts/partials/card-related.html b/layouts/_partials/card-related.html similarity index 100% rename from layouts/partials/card-related.html rename to layouts/_partials/card-related.html diff --git a/layouts/partials/card.html b/layouts/_partials/card.html similarity index 100% rename from layouts/partials/card.html rename to layouts/_partials/card.html diff --git a/layouts/partials/content.html b/layouts/_partials/content.html similarity index 100% rename from layouts/partials/content.html rename to layouts/_partials/content.html diff --git a/layouts/partials/embed.html b/layouts/_partials/embed.html similarity index 100% rename from layouts/partials/embed.html rename to layouts/_partials/embed.html diff --git a/layouts/partials/footer.html b/layouts/_partials/footer.html similarity index 100% rename from layouts/partials/footer.html rename to layouts/_partials/footer.html diff --git a/layouts/partials/header-banner.html b/layouts/_partials/header-banner.html similarity index 100% rename from layouts/partials/header-banner.html rename to layouts/_partials/header-banner.html diff --git a/layouts/partials/header.html b/layouts/_partials/header.html similarity index 100% rename from layouts/partials/header.html rename to layouts/_partials/header.html diff --git a/layouts/partials/icons/envelope.svg b/layouts/_partials/icons/envelope.svg similarity index 100% rename from layouts/partials/icons/envelope.svg rename to layouts/_partials/icons/envelope.svg diff --git a/layouts/partials/icons/git.svg b/layouts/_partials/icons/git.svg similarity index 100% rename from layouts/partials/icons/git.svg rename to layouts/_partials/icons/git.svg diff --git a/layouts/partials/icons/github.svg b/layouts/_partials/icons/github.svg similarity index 100% rename from layouts/partials/icons/github.svg rename to layouts/_partials/icons/github.svg diff --git a/layouts/partials/js.html b/layouts/_partials/js.html similarity index 100% rename from layouts/partials/js.html rename to layouts/_partials/js.html diff --git a/layouts/partials/list-item.html b/layouts/_partials/list-item.html similarity index 100% rename from layouts/partials/list-item.html rename to layouts/_partials/list-item.html diff --git a/layouts/partials/pagination.html b/layouts/_partials/pagination.html similarity index 100% rename from layouts/partials/pagination.html rename to layouts/_partials/pagination.html diff --git a/layouts/partials/parent-topics.html b/layouts/_partials/parent-topics.html similarity index 100% rename from layouts/partials/parent-topics.html rename to layouts/_partials/parent-topics.html diff --git a/layouts/partials/sidebar.html b/layouts/_partials/sidebar.html similarity index 100% rename from layouts/partials/sidebar.html rename to layouts/_partials/sidebar.html diff --git a/layouts/shortcodes/cards.html b/layouts/_shortcodes/cards.html similarity index 100% rename from layouts/shortcodes/cards.html rename to layouts/_shortcodes/cards.html diff --git a/layouts/shortcodes/clear.html b/layouts/_shortcodes/clear.html similarity index 100% rename from layouts/shortcodes/clear.html rename to layouts/_shortcodes/clear.html diff --git a/layouts/shortcodes/comment.html b/layouts/_shortcodes/comment.html similarity index 100% rename from layouts/shortcodes/comment.html rename to layouts/_shortcodes/comment.html diff --git a/layouts/shortcodes/embed.md b/layouts/_shortcodes/embed.md similarity index 100% rename from layouts/shortcodes/embed.md rename to layouts/_shortcodes/embed.md diff --git a/layouts/shortcodes/iimg.html b/layouts/_shortcodes/iimg.html similarity index 100% rename from layouts/shortcodes/iimg.html rename to layouts/_shortcodes/iimg.html diff --git a/layouts/shortcodes/ilink.html b/layouts/_shortcodes/ilink.html similarity index 100% rename from layouts/shortcodes/ilink.html rename to layouts/_shortcodes/ilink.html diff --git a/layouts/shortcodes/quote.html b/layouts/_shortcodes/quote.html similarity index 100% rename from layouts/shortcodes/quote.html rename to layouts/_shortcodes/quote.html diff --git a/layouts/_default/baseof.html b/layouts/baseof.html similarity index 100% rename from layouts/_default/baseof.html rename to layouts/baseof.html diff --git a/layouts/_default/home.ejsl b/layouts/home.ejsl similarity index 100% rename from layouts/_default/home.ejsl rename to layouts/home.ejsl diff --git a/layouts/_default/list.html b/layouts/list.html similarity index 100% rename from layouts/_default/list.html rename to layouts/list.html diff --git a/layouts/_default/single.html b/layouts/single.html similarity index 100% rename from layouts/_default/single.html rename to layouts/single.html diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy.html similarity index 100% rename from layouts/taxonomy/list.html rename to layouts/taxonomy.html diff --git a/layouts/taxonomy/terms.html b/layouts/terms.html similarity index 100% rename from layouts/taxonomy/terms.html rename to layouts/terms.html diff --git a/layouts/topics/list.html b/layouts/topics/list.html new file mode 100644 index 0000000..894572d --- /dev/null +++ b/layouts/topics/list.html @@ -0,0 +1,48 @@ +{{ define "main" }} + +
+ + {{- $parents := .Params.Topics -}} + {{- $mainWidth := or (and $parents "8") "12" -}} + {{- $children := (where + (where .Site.Pages "Section" "topics") + "Params.topics" "intersect" (slice .Name)) -}} +
+
+
+
+

{{i18n .Data.Singular}}: {{ .Title }}

+
+
+ {{ with .Content -}} +
{{ . }}
+ {{- end }} + {{ with $children -}} +

+ {{- i18n "child-topics" -}}: + {{ range . -}} + + {{ .Title }} + + {{- end }} +

+ {{- end }} +
+
+
+ {{ partial "parent-topics.html" . }} +
+ +
+ {{ $paginator := .Paginate (.Data.Pages) }} + {{ range $paginator.Pages }} + {{ partial "card.html" . }} + {{ end }} +
+ +
+ {{ partial "pagination.html" . }} +
+ +
+{{ end }} diff --git a/layouts/topics/taxonomy.html b/layouts/topics/taxonomy.html new file mode 100644 index 0000000..894572d --- /dev/null +++ b/layouts/topics/taxonomy.html @@ -0,0 +1,48 @@ +{{ define "main" }} + +
+ + {{- $parents := .Params.Topics -}} + {{- $mainWidth := or (and $parents "8") "12" -}} + {{- $children := (where + (where .Site.Pages "Section" "topics") + "Params.topics" "intersect" (slice .Name)) -}} +
+
+
+
+

{{i18n .Data.Singular}}: {{ .Title }}

+
+
+ {{ with .Content -}} +
{{ . }}
+ {{- end }} + {{ with $children -}} +

+ {{- i18n "child-topics" -}}: + {{ range . -}} + + {{ .Title }} + + {{- end }} +

+ {{- end }} +
+
+
+ {{ partial "parent-topics.html" . }} +
+ +
+ {{ $paginator := .Paginate (.Data.Pages) }} + {{ range $paginator.Pages }} + {{ partial "card.html" . }} + {{ end }} +
+ +
+ {{ partial "pagination.html" . }} +
+ +
+{{ end }} diff --git a/layouts/topics/terms.html b/layouts/topics/terms.html new file mode 100644 index 0000000..23b3933 --- /dev/null +++ b/layouts/topics/terms.html @@ -0,0 +1,32 @@ +{{ define "main" }} + +
+ +
+
+
+
+

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

+
+
+
+
+ +
+ {{- $site := .Site }} + {{ range .Data.Terms.ByCount -}} + + {{- end }} +
+ +
+ +{{ end }}