From 8ac1894a66c52e370900b2d3f1a7de43207a38de Mon Sep 17 00:00:00 2001 From: welpo Date: Sun, 5 Mar 2023 19:52:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20redesign=20tag=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_tags.scss | 14 +++++++++++++- templates/macros/list_title.html | 16 ---------------- templates/macros/set_title.html | 2 +- templates/tags/list.html | 25 ++++++++++++------------- templates/tags/single.html | 11 ++++++++++- 5 files changed, 36 insertions(+), 32 deletions(-) delete mode 100644 templates/macros/list_title.html diff --git a/sass/parts/_tags.scss b/sass/parts/_tags.scss index 9e5125a..598ed8c 100644 --- a/sass/parts/_tags.scss +++ b/sass/parts/_tags.scss @@ -6,7 +6,6 @@ .taglist-table-row { padding: 2%; background-color: var(--navbar-color); - transition: 300ms; width: 28%; margin-right: 1%; margin-top: 1%; @@ -52,3 +51,16 @@ margin: 0 } } + +.tag-cloud { + margin-top: 4vmin; + + ul { + list-style: none; + padding: 0; + margin: 0; + } + .tags-item { + margin-top: 1rem; + } +} diff --git a/templates/macros/list_title.html b/templates/macros/list_title.html deleted file mode 100644 index e0d4ae1..0000000 --- a/templates/macros/list_title.html +++ /dev/null @@ -1,16 +0,0 @@ -{% macro list_title(pages, tag_name=false) %} -{% if tag_name %} -
Tag {{ term.name }}
-{% else %} -

All articles

-{% endif %} - - -{% endmacro list_title %} diff --git a/templates/macros/set_title.html b/templates/macros/set_title.html index c91ffaf..364635a 100644 --- a/templates/macros/set_title.html +++ b/templates/macros/set_title.html @@ -16,7 +16,7 @@ {% set suffix = page.title %} {% elif term.name %} {# Individual tags. #} - {% set suffix = term.name ~ " tag" %} + {% set suffix = term.name %} {% elif taxonomy.name %} {# List of tags. #} {% set suffix = taxonomy.name | capitalize %} diff --git a/templates/tags/list.html b/templates/tags/list.html index 02dc0e3..1ed99f7 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -2,20 +2,19 @@ {% block main_content %} -{{ macros_page_header::page_header(title="Tags") }} +{{ macros_page_header::page_header(title="All tags")}} - + {% endfor %} + + {% endblock main_content %} diff --git a/templates/tags/single.html b/templates/tags/single.html index 841ff41..b1f7ef8 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -2,6 +2,15 @@ {% block main_content %} -{{ macros_list_title::list_title(pages=term.pages, tag_name=term.name) }} +{{ macros_page_header::page_header(title=term.name | title) }} + +{% set max = section.extra.max_posts | default(value=999999) %} +{{ macros_list_posts::list_posts(posts=term.pages, max=max) }} + + {% endblock main_content %}