Fix RSS feed_route not set

This commit is contained in:
Simounet 2023-06-12 19:05:38 +02:00
parent 0482d59c30
commit fe740f4a69
No known key found for this signature in database
GPG Key ID: 77D3B7DC794EB770

View File

@ -9,4 +9,6 @@
{% set feed_route = feed_route ~ '_feed' %}
{% set slug = null %}
{% endif %}
<a rel="alternate" type="application/atom+xml" href="{{ path(feed_route, {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': slug}) }}" class="results-item"><i class="material-icons">rss_feed</i></a>
{% if feed_route %}
<a rel="alternate" type="application/atom+xml" href="{{ path(feed_route, {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': slug}) }}" class="results-item"><i class="material-icons">rss_feed</i></a>
{% endif %}