Commit b2912e31 authored by Carl Schwan's avatar Carl Schwan 🚴

Refactor homepage

parent 6a738ecb
Pipeline #39004 passed with stage
in 2 minutes and 59 seconds
......@@ -12,46 +12,10 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% block canonical %}https://apps.kde.org{{ path('app_main_index', {'_locale': locale}) }}{% endblock %}
{% block imageSize %}summary{% endblock %}
{% block hreflang %}
<link rel="alternate" href="https://kde.org{{ path('app_main_index', {'_locale': "en"}) }}" hreflang="en" />
{% for translation in translations %}
<link rel="alternate" href="https://kde.org{{ path('app_main_index', {'_locale': translation}) }}" hreflang="{{ translation }}" />
{% endfor %}
{% endblock %}
{% block body %}
<main class="container">
<h1>{{ block('title') }}</h1>
<nav class="mb-2" aria-label="{% trans %}Language selector{% endtrans %}">
<ul class="list-inline">
<li class="list-inline-item">
{% if locale == "en" %}
<span aria-label="{% trans %}Selected language: English{% endtrans %}">English</span>
{% else %}
<a href="{{ path('app_main_index', {'_locale': "en"}) }}">English</a>
{% endif %}
<span aria-hidden="true">|</span>
</li>
{% for translation in translations %}
<li class="list-inline-item">
{% set lang = translation | language_name(translation) | capitalize %}
{% if translation == "ca_valencia" %}
{% set lang = "Valencià" %}
{% endif %}
{% if locale == translation %}
<span aria-label="{% trans %}Selected language: %lang%{% endtrans %}">{{ lang }}</span>
{% else %}
<a href="{{ path('app_main_index', {'_locale': translation}) }}">{{ lang }}</a>
{% endif %}
{% if not loop.last %}
<span aria-hidden="true">|</span>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
<p>{{ block('description') }}</p>
<div class="form-group">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment