Add option to hide number of subprojects

This commit is contained in:
david-swift 2025-03-11 21:00:46 +01:00
parent aa99a61895
commit d322acaafe
2 changed files with 7 additions and 2 deletions

View File

@ -107,6 +107,9 @@ show_backlinks = true
# Custom separator used in title tag and posts metadata. # Custom separator used in title tag and posts metadata.
# title_separator = "-" # title_separator = "-"
# #
# Hide the number of subprojects in the subprojects list.
# hide_number_of_subprojects = true
#
# Whether to use Content Security Policy. # Whether to use Content Security Policy.
# Keep in mind that although this can potentially increase security, # 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. # it can break some stuff, in which case you will need to set custom policy.

View File

@ -35,8 +35,10 @@
{{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }} {{ macros_translate::translate(key="filter_by_tag", default="Filter by tag", language_strings=language_strings) }}
</a> </a>
<br /> <br />
{%- endif %} {%- endif -%}
{%- if not config.extra.hide_number_of_subprojects -%}
{{ macros_translate::translate(key="posts", number=number_of_posts, default="$NUMBER posts in total", language_strings=language_strings) }} {{ macros_translate::translate(key="posts", number=number_of_posts, default="$NUMBER posts in total", language_strings=language_strings) }}
{%- endif -%}
</small> </small>
</p> </p>