Add nofollow to tags

This commit is contained in:
rubenwardy 2020-07-16 14:06:29 +01:00
parent 208a47b41d
commit 0e4722ea98
2 changed files with 3 additions and 3 deletions

View File

@ -27,14 +27,14 @@
{% set tag = pair[1] %} {% set tag = pair[1] %}
{% if tag in selected_tags %} {% if tag in selected_tags %}
<a class="badge badge-primary" <a class="badge badge-primary" rel="nofollow"
href="{{ url_set_query(page=1, _remove={ 'tag': tag.name }) }}"> href="{{ url_set_query(page=1, _remove={ 'tag': tag.name }) }}">
{{ tag.title }} {{ tag.title }}
({{ count }}) ({{ count }})
</a> </a>
{% else %} {% else %}
<a class="badge badge-secondary" <a class="badge badge-secondary" rel="nofollow"
href="{{ url_set_query(page=1, _add={ 'tag': tag.name }) }}"> href="{{ url_set_query(page=1, _add={ 'tag': tag.name }) }}">
{{ tag.title }} {{ tag.title }}

View File

@ -48,7 +48,7 @@
</a> </a>
{% endif %} {% endif %}
{% for t in package.tags %} {% for t in package.tags %}
<a class="badge badge-primary" <a class="badge badge-primary" rel="nofollow"
href="{{ url_for('packages.list_all', tag=t.name) }}">{{ t.title }}</a> href="{{ url_for('packages.list_all', tag=t.name) }}">{{ t.title }}</a>
{% endfor %} {% endfor %}
</p> </p>