{% set artifacts = page.artifacts %} {# Do we have only one platform? If so, simplify a bunch of stuff #} {% set simple_platforms = artifacts.platforms_with_downloads|length == 1 %}

Install {{ artifacts.tag }}

{% if artifacts.formatted_date %}
Published on {{ artifacts.formatted_date }}
{% endif %}
{% if not simple_platforms %} {% endif %} {# Get the target from the first platform #} {% set first_target = artifacts.platforms_with_downloads | first | attr("target") | first %}
View all installation options {% if simple_platforms %} {% if first_target and first_target != "all" %}
Platform: {{ artifacts.platforms_with_downloads | first | attr("display_name") }}
{% endif %} {% else %} {% endif %}
View all installation options