{% load i18n dzenlog_tags %}
{% block feed_links %}
{% call all_feeds_url slug="rss" as feed_url_for_all_posts %}
{% if tags %}
{% with tags|length as tags_count %}
{% ifnotequal tags_count 1 %}
{% endifnotequal %}
{% endwith %}
{% for tag in tags %}
{% endfor %}
{% else %}
{% call feeds_url slug="rss", param=tags_slug as feed_url_for_type %}
{% ifnotequal feed_url_for_type feed_url_for_all_posts %}
{% endifnotequal %}
{% if object and object.tags %}
{% for tag in object.get_tags %}
{% ifequal feed_url_for_type feed_url_for_all_posts %}
{% else %}
{% endifequal %}
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}