From 94301fe8990ff50a864f87114034f4189e1927e0 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 27 Mar 2023 19:10:43 -0400 Subject: themes/default/layouts/_default/taxonomy: Clean up Arrange in cards --- .../layouts/_default/section.following.html | 1 + .../default/layouts/_default/section.webring.html | 2 + themes/default/layouts/_default/taxonomy.html | 121 +++++++++++---------- themes/default/layouts/partials/author-card.html | 2 +- 4 files changed, 65 insertions(+), 61 deletions(-) (limited to 'themes') diff --git a/themes/default/layouts/_default/section.following.html b/themes/default/layouts/_default/section.following.html index c53ab09..48afa7d 100644 --- a/themes/default/layouts/_default/section.following.html +++ b/themes/default/layouts/_default/section.following.html @@ -39,6 +39,7 @@

@{{ $distinct.FeedSourceDomain }} diff --git a/themes/default/layouts/_default/section.webring.html b/themes/default/layouts/_default/section.webring.html index d82efe0..59b26ba 100644 --- a/themes/default/layouts/_default/section.webring.html +++ b/themes/default/layouts/_default/section.webring.html @@ -26,6 +26,7 @@
{{ or .FeedTitle (truncate 50 "..." (or .FeedContentShort .FeedDescriptionShort)) }} @@ -46,6 +47,7 @@ —

{{ .FeedSourceTitle }} diff --git a/themes/default/layouts/_default/taxonomy.html b/themes/default/layouts/_default/taxonomy.html index bcacf3e..e0126d2 100644 --- a/themes/default/layouts/_default/taxonomy.html +++ b/themes/default/layouts/_default/taxonomy.html @@ -1,71 +1,72 @@ -{{ define "styles" }} +{{- define "styles" -}} -{{ end }} +{{- end -}} -{{ define "middle" }} +{{- define "middle" -}} - {{- $title := .Title -}} - {{- $author := partial "function-authors-data.html" . -}} + {{- partial "navigator-middle.html" + (dict + "Title" "Tags" + "Subtitle" (partial "count-tags.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) + -}} - {{ if eq .Title "Tags" }} + + {{- range .Paginator.Pages -}} + {{- $count := len .Data.Pages -}} + {{- $title := lower .Title -}} - {{- partial "navigator-middle.html" - (dict - "Title" "Tags" - "Subtitle" (partial "count-tags.html" .) - "Icon" "arrow-left" - "IconLabel" "Back" - "Href" "/" - "Id" "back" - "Context" . - ) - -}} - - {{- $page := 1 -}} - {{- $count := 0 -}} - - {{ range .Paginator.Pages }} - {{ $title := lower .Title }} - -

- #{{ .Title }} -

- - - - {{ end }} - - {{ partial "pagination.html" . }} - - {{ end }} + +

+
+ + + {{ partial "author-picture" . }} + + +
+

+ + @{{ $author.user }} + +

+ +

+ + {{ partial "meta-title.html" . }} + +

+ + + {{- end -}} + {{- end -}} + -{{ end }} + {{ partial "pagination.html" . }} +{{- end -}} -{{ define "right" }} +{{- define "right" -}} {{- partial "navigator-right.html" . -}} -{{ end }} +{{- end -}} diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index 873363a..bbb3ec8 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -59,7 +59,7 @@ {{ .Data.name }}

- + {{ .Data.user }}@{{ $host }}

-- cgit v1.2.3