diff options
author | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
commit | 6b77bf7be196eb29f0e0f8739daaa9fdb94c1286 (patch) | |
tree | 9f32ad641e1fe367a12d1513e85dbe9b82caff8a /themes/default/layouts/_default | |
parent | 1a5ebb6311a058e45a849642118b7b1d6fc7eecb (diff) | |
download | canory-6b77bf7be196eb29f0e0f8739daaa9fdb94c1286.tar.gz canory-6b77bf7be196eb29f0e0f8739daaa9fdb94c1286.tar.bz2 canory-6b77bf7be196eb29f0e0f8739daaa9fdb94c1286.zip |
themes/default/layouts/partials/count: Use more generic decoupled terms
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r-- | themes/default/layouts/_default/home.archives.html | 6 | ||||
-rw-r--r-- | themes/default/layouts/_default/home.authors.html | 6 | ||||
-rw-r--r-- | themes/default/layouts/_default/home.sources.html | 6 | ||||
-rw-r--r-- | themes/default/layouts/_default/index.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/_default/section.drafts.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/_default/section.feeds.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/_default/section.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/_default/section.likes.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/_default/section.media.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/_default/single.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/_default/taxonomy.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/_default/term.html | 2 |
12 files changed, 24 insertions, 24 deletions
diff --git a/themes/default/layouts/_default/home.archives.html b/themes/default/layouts/_default/home.archives.html index 0e9cfb7..e34d450 100644 --- a/themes/default/layouts/_default/home.archives.html +++ b/themes/default/layouts/_default/home.archives.html @@ -1,5 +1,5 @@ -{{- define "title" -}}Message Archive — {{- end -}} -{{- define "description" -}}This page contains an archive of all messages — {{- end -}} +{{- define "title" -}}Archives — {{ end -}} +{{- define "description" -}}An archive of all items — {{ end -}} {{- define "styles" -}} <style> {{ partial "navigator.css.html" (dict "Link" "/archives/messages/") | safeCSS }} @@ -14,7 +14,7 @@ "Id" "back" "Title" "Archives" "Icon" "arrow-left" - "Subtitle" (partial "count-total-messages.html" .) + "Subtitle" (print (partial "count.html" .) " " "Total") "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/") ) -}} diff --git a/themes/default/layouts/_default/home.authors.html b/themes/default/layouts/_default/home.authors.html index ee24585..87ebc3c 100644 --- a/themes/default/layouts/_default/home.authors.html +++ b/themes/default/layouts/_default/home.authors.html @@ -1,5 +1,5 @@ -{{- define "title" -}}Authors — {{- end -}} -{{- define "description" -}}This page contains a list of all authors — {{- end -}} +{{- define "title" -}}Authors — {{ end -}} +{{- define "description" -}}A list of all authors — {{ end -}} {{- define "styles" -}} <style> {{ partial "navigator.css.html" (dict "Link" "/authors/") | safeCSS }} @@ -10,7 +10,7 @@ {{- partial "navigator-middle.html" (dict "Title" "Authors" - "Subtitle" (partial "count-authors.html" .) + "Subtitle" (print (partial "count-authors.html" .) " " "Total") "Icon" "arrow-left" "IconLabel" "Back" "Href" "/" diff --git a/themes/default/layouts/_default/home.sources.html b/themes/default/layouts/_default/home.sources.html index cea3826..eeb629c 100644 --- a/themes/default/layouts/_default/home.sources.html +++ b/themes/default/layouts/_default/home.sources.html @@ -1,5 +1,5 @@ -{{- define "title" -}}Sources — {{- end -}} -{{- define "description" -}}This page contains a list of all source files — {{- end -}} +{{- define "title" -}}Sources — {{ end -}} +{{- define "description" -}}A list of all sources — {{ end -}} {{- define "styles" -}} <style> {{ partial "navigator.css.html" (dict "Link" "/sources/") | safeCSS }} @@ -24,7 +24,7 @@ {{- partial "navigator-middle.html" (dict "Title" "Sources" - "Subtitle" (print $fileCount " " "Files") + "Subtitle" (print $fileCount " " "Total") "Icon" "arrow-left" "IconLabel" "Back" "Href" "/" diff --git a/themes/default/layouts/_default/index.html b/themes/default/layouts/_default/index.html index 8382c57..f1ab369 100644 --- a/themes/default/layouts/_default/index.html +++ b/themes/default/layouts/_default/index.html @@ -9,7 +9,7 @@ (dict "Context" . "Title" "Home" - "Subtitle" (partial "count-total-messages.html" .) + "Subtitle" (print (partial "count.html" .) " " "Total") "IconLabel" (and (gt .Paginator.PageNumber 1) "Back") "Id" (and (gt .Paginator.PageNumber 1) "back") "Icon" (and (gt .Paginator.PageNumber 1) "arrow-left") diff --git a/themes/default/layouts/_default/section.drafts.html b/themes/default/layouts/_default/section.drafts.html index d797ec9..e7d56a1 100644 --- a/themes/default/layouts/_default/section.drafts.html +++ b/themes/default/layouts/_default/section.drafts.html @@ -30,7 +30,7 @@ "Id" "back" "Title" "Drafts" "Icon" "arrow-left" - "Subtitle" (partial "count-drafts.html" .) + "Subtitle" (print (partial "count-drafts.html" .) " " "Total") "Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Paginator.Prev.URL | absURL)) "/") ) -}} @@ -43,7 +43,7 @@ {{- partial "render-embed.html" . -}} {{- else -}} <footer> - <code>No drafts found!</code> + <code>No items found!</code> </footer> {{- end -}} {{- end -}} diff --git a/themes/default/layouts/_default/section.feeds.html b/themes/default/layouts/_default/section.feeds.html index 0cb6dd9..30ef7ed 100644 --- a/themes/default/layouts/_default/section.feeds.html +++ b/themes/default/layouts/_default/section.feeds.html @@ -24,7 +24,7 @@ "Id" "back" "Title" "Feeds" "Icon" "arrow-left" - "Subtitle" (partial "count-feeds.html" .) + "Subtitle" (print (partial "count-feeds.html" .) " " "Total") "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/") ) -}} @@ -37,7 +37,7 @@ {{- partial "render-embed.html" . -}} {{- else -}} <footer> - <code>No feeds found!</code> + <code>No items found!</code> </footer> {{- end -}} {{- $writeToFile := partial "function-generate-feeds" . -}} diff --git a/themes/default/layouts/_default/section.html b/themes/default/layouts/_default/section.html index 856f57d..ba4c133 100644 --- a/themes/default/layouts/_default/section.html +++ b/themes/default/layouts/_default/section.html @@ -26,7 +26,7 @@ "Title" $author.name "Icon" "arrow-left" "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/") - "Subtitle" (print (lang.FormatNumberCustom 0 .Paginator.TotalNumberOfElements) " " "Messages") + "Subtitle" (print (lang.FormatNumberCustom 0 .Paginator.TotalNumberOfElements) " " "Total") ) -}} @@ -40,7 +40,7 @@ {{- partial "render-embed.html" . -}} {{- else -}} <footer> - <code>No messages found!</code> + <code>No items found!</code> </footer> {{- end -}} {{- end -}} diff --git a/themes/default/layouts/_default/section.likes.html b/themes/default/layouts/_default/section.likes.html index f2d5877..130765a 100644 --- a/themes/default/layouts/_default/section.likes.html +++ b/themes/default/layouts/_default/section.likes.html @@ -30,7 +30,7 @@ "Id" "back" "Title" "Likes" "Icon" "arrow-left" - "Subtitle" (partial "count-likes.html" .) + "Subtitle" (print (partial "count-likes.html" .) " " "Total") "Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Prev.URL | absURL)) "/") ) -}} @@ -43,7 +43,7 @@ {{- partial "render-embed.html" . -}} {{- else -}} <footer> - <code>No likes found!</code> + <code>No items found!</code> </footer> {{- end -}} {{- end -}} diff --git a/themes/default/layouts/_default/section.media.html b/themes/default/layouts/_default/section.media.html index 4063f83..5c2c05e 100644 --- a/themes/default/layouts/_default/section.media.html +++ b/themes/default/layouts/_default/section.media.html @@ -20,7 +20,7 @@ {{- partial "navigator-middle.html" (dict "Title" "Media" - "Subtitle" (partial "count-media.html" .) + "Subtitle" (print (partial "count-media.html" .) " " "Total") "Icon" "arrow-left" "IconLabel" "Back" "Href" "/" @@ -55,7 +55,7 @@ {{- if not $count -}} <footer> - <code>No media found!</code> + <code>No items found!</code> </footer> {{- end -}} {{- end -}} diff --git a/themes/default/layouts/_default/single.html b/themes/default/layouts/_default/single.html index 892a55f..b257617 100644 --- a/themes/default/layouts/_default/single.html +++ b/themes/default/layouts/_default/single.html @@ -7,7 +7,7 @@ {{- define "header" -}} {{- partial "navigator-middle.html" (dict - "Title" "Message" + "Title" "Post" "Subtitle" "Thread" "Icon" "arrow-left" "IconLabel" "Back" diff --git a/themes/default/layouts/_default/taxonomy.html b/themes/default/layouts/_default/taxonomy.html index 849e2b1..9ec1cb7 100644 --- a/themes/default/layouts/_default/taxonomy.html +++ b/themes/default/layouts/_default/taxonomy.html @@ -12,7 +12,7 @@ "Id" "back" "Title" "Tags" "Icon" "arrow-left" - "Subtitle" (partial "count-tags.html" .) + "Subtitle" (print (partial "count-tags.html" .) " " "Total") "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/") ) -}} @@ -21,7 +21,7 @@ {{- define "middle" -}} <tag-deck> {{- range .Paginator.Pages -}} - {{- $count := len .Data.Pages -}} + {{- $count := lang.FormatNumberCustom 0 (len .Data.Pages) -}} {{- $title := lower .Title -}} {{- range first 1 .Pages -}} diff --git a/themes/default/layouts/_default/term.html b/themes/default/layouts/_default/term.html index df0c92e..6455b40 100644 --- a/themes/default/layouts/_default/term.html +++ b/themes/default/layouts/_default/term.html @@ -12,7 +12,7 @@ "Id" "back" "Icon" "arrow-left" "Title" (print "#" .Title) - "Subtitle" (print (lang.FormatNumberCustom 0 (len .Data.Pages)) " " "Messages") + "Subtitle" (print (lang.FormatNumberCustom 0 (len .Data.Pages)) " " "Total") "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/") ) -}} |