Add option to hide subproject tags

This commit is contained in:
david-swift 2025-03-11 21:05:11 +01:00
parent d322acaafe
commit 21c184a004
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -30,7 +30,7 @@
<p>
<small>
{%- if config.taxonomies | length > 0 -%}
{%- if (config.taxonomies | length > 0) and not config.extra.hide_subproject_tags -%}
<a href="{{ get_url(path='tags', lang=lang) }}">
{{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }}
</a>