From 4d546d8c89aeafb6cebff16ca5b8cef501233ab1 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 20 Oct 2023 12:54:58 +0200 Subject: Metadata taxonomies link and style --- layouts/_default/about.html | 1 - layouts/index.html | 3 -- layouts/partials/metadata.html | 14 +++++++--- layouts/taxonomy/terms.html | 62 +++++++++++++++++++++++++++--------------- 4 files changed, 50 insertions(+), 30 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/about.html b/layouts/_default/about.html index e69e671..0b7caed 100644 --- a/layouts/_default/about.html +++ b/layouts/_default/about.html @@ -38,7 +38,6 @@ {{ end }} {{ define "main" }} -
{{ range .Paginator.Pages }}
diff --git a/layouts/index.html b/layouts/index.html index 021da39..2f9d8ff 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,9 +3,6 @@ {{ end }} {{ define "main" }} - - -
{{ range $index, $element := (where .Pages "Type" "in" .Site.Params.mainSections).ByWeight }}
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 5816186..d34c3a8 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -35,18 +35,24 @@ {{ end }} {{ with .Params.tags }} - | + | + + + {{ range . }} {{ $href := print (absURL "tags/") (urlize .) }} - {{ . }} + {{ . }} {{ end }} {{ end }} {{ with .Params.categories }} - | + | + + + {{ range . }} {{ $href := print (absURL "categories/") (urlize .) }} - {{ . }} + {{ . }} {{ end }} {{ end }}

diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html index 73856b3..75efd98 100644 --- a/layouts/taxonomy/terms.html +++ b/layouts/taxonomy/terms.html @@ -1,35 +1,53 @@ +{{ define "hero" }} + {{ partial "hero.html" . }} +{{ end }} + {{ define "main" }} -
-

{{ .Title }}

-
- {{ range .Data.Terms.ByCount }} - - {{ .Name }} +
+
+ {{ range .Data.Terms.ByCount }} + + {{ .Name }} - {{ end }} + {{ end }}
- {{ range .Data.Terms.ByCount }} - - {{ end }} + {{ end }}
-
+
{{ end }} -- cgit v1.2.3