From 21c184a004161572b65bf9d6c1e69f0de2354fb7 Mon Sep 17 00:00:00 2001 From: david-swift Date: Tue, 11 Mar 2025 21:05:11 +0100 Subject: [PATCH] Add option to hide subproject tags --- config.toml | 3 +++ templates/subproject_list.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index a4caa99..398a0fe 100644 --- a/config.toml +++ b/config.toml @@ -110,6 +110,9 @@ show_backlinks = true # Hide the number of subprojects in the subprojects list. # hide_number_of_subprojects = true # +# Hide the tags in the subprojects list. +# hide_subproject_tags = true +# # Whether to use Content Security Policy. # Keep in mind that although this can potentially increase security, # it can break some stuff, in which case you will need to set custom policy. diff --git a/templates/subproject_list.html b/templates/subproject_list.html index 523eeaf..f1aa615 100644 --- a/templates/subproject_list.html +++ b/templates/subproject_list.html @@ -30,7 +30,7 @@

- {%- if config.taxonomies | length > 0 -%} + {%- if (config.taxonomies | length > 0) and not config.extra.hide_subproject_tags -%} {{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }}