Skip to content
Snippets Groups Projects
Commit 613a5cc4 authored by Benjamin Becker's avatar Benjamin Becker
Browse files

adds meta tag noindex if not latest collection member

parent a2e24f12
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,14 @@
{% set latest_collection_member = collection['persistent_link_last_member'] if collection else None %}
{% set thumbnail_url = h.thumbail_get_download_link(pkg) %}
{% block meta %}
{{ super() }}
{# prevent package from beeing indexed if it is part of collection but not last member #}
{% if successor_url %}
<meta name="robots" content="noindex" />
{% endif %}
{% endblock meta %}
{% block breadcrumb_content %}
{% if pkg %}
{% set dataset = h.dataset_display_name(pkg) %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment