Turn "Feed" button to a dropdown if multiple feeds are avaiable (fixes #72)

This commit is contained in:
daudix
2024-09-14 04:02:11 +03:00
parent a1946ae0b2
commit 7df26217f8
3 changed files with 25 additions and 2 deletions

View File

@ -130,7 +130,7 @@
{%- set scripts = scripts | concat(with=["theme-switcher.js"]) %}
{%- endif %}
{%- if config.extra.nav.links.menu or config.languages | length > 0 or config.extra.nav.show_theme_switcher %}
{%- if config.extra.nav.links.menu or config.languages | length > 0 or config.extra.nav.show_theme_switcher or config.feed_filenames | length > 1 and config.extra.nav.show_feed %}
{%- set scripts = scripts | concat(with=["details.js"]) %}
{%- endif %}