forked from organicmaps/website
Fixed missing localized news sections
It looks like a bug: some sections are automatically get the "list.html" template for taxonomy, while others don't get it. Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
parent
c0a43237b4
commit
0c78a84b2c
25 changed files with 34 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
description: "Bl op hoogte van nuwe Organic Maps-weergawes, nuus en bywerkings van ons span"
|
||||
extra:
|
||||
menu_title: Nuus
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Jongste nuus en bywerkings van ons span"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "ابقَ على تواصل بأحدث الإصدارات Organic Maps والأخبار والتحديثات من فريقنا"
|
||||
extra:
|
||||
menu_title: الأخبار
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: آخر الأخبار والتحديثات من فريقنا"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Seguiu les novetats de l'Organic Maps, notícies i actualitzacions del nostre equip"
|
||||
extra:
|
||||
menu_title: Notícies
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: les notícies i novetats més recents del nostre equip"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Zůstaňte v kontaktu s nejnovějšími verzemi Organic Maps, novinkami a aktualizacemi od našeho týmu"
|
||||
extra:
|
||||
menu_title: Novinky
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Nejnovější zprávy a aktualizace od našeho týmu"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Bleibe auf dem Laufenden mit den neuesten Veröffentlichungen von Organic Maps, Neuigkeiten und Updates von unserem Team"
|
||||
extra:
|
||||
menu_title: Neuigkeiten
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Neueste Nachrichten und Updates von unserem Team"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Permanezca al tanto de los últimos lanzamientos de Organic Maps, las noticias y las actualizaciones de nuestro equipo"
|
||||
extra:
|
||||
menu_title: Noticias
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: noticias y actualizaciones más recientes de nuestro equipo"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Mantendu informatuta gure taldearen azken bertsio-publikazio, albiste eta eguneraketekin"
|
||||
extra:
|
||||
menu_title: Berriak
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: azken albiste eta eguneraketak gure lan-taldetik"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Organic Maps: Dernières nouvelles et mises à jour de notre équipe"
|
||||
description: Restez en contact avec les dernières versions de Organic Maps, les nouvelles et les mises à jour de notre équipe
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
extra:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "हमारी टीम के आधुनिकतम ऑर्गेनिक मानचित्र रिलीज़, समाचार, एवम अपडेट के संपर्क में रहें"
|
||||
extra:
|
||||
menu_title: समाचार
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "ऑर्गेनिक मैप्स: हमारी टीम से नवीनतम समाचार और अपडेट"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Maradjon kapcsolatban a legfrissebb Organic Maps kiadványokkal, hírekkel és frissítésekkel csapatunktól"
|
||||
extra:
|
||||
menu_title: Hírek
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Legfrissebb hírek és újdonságok a csapatunktól"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Tetap terhubung dengan rilis Organic Maps terbaru, berita dan pembaruan dari tim kami"
|
||||
extra:
|
||||
menu_title: Berita
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Berita dan pembaruan terbaru dari tim kami"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Organic Maps: Ultime notizie e aggiornamenti dal nostro team"
|
||||
description: Rimanete in contatto con gli ultimi rilasci di app, le novità e gli aggiornamenti del nostro team
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
extra:
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Organic Maps: Latest news and updates from our team"
|
||||
description: Stay in touch with the latest Organic Maps releases, news and updates from our team
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
extra:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Blijf op de hoogte van nieuwe Organic Maps versies, nieuws en updates van ons team"
|
||||
extra:
|
||||
menu_title: Nieuws
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Laatste nieuws en updates van ons team"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Bądź na bieżąco z najnowszymi wydaniami Organic Maps, wiadomościami i aktualizacjami od naszego zespołu"
|
||||
extra:
|
||||
menu_title: Nowości
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Najnowsze wiadomości i aktualizacje od naszego zespołu"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Fique atualizado com os últimos lançamentos, notícias e atualizações do Organic Maps"
|
||||
extra:
|
||||
menu_title: Notícias
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Últimas notícias e atualizações de nossa equipe"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Organic Maps: Свежие новости и обновления от нашей команды"
|
||||
description: Оставайтесь в курсе последних обновлений и новостей от нашей команды
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
extra:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Håll dig uppdaterad med de senaste versionerna av Organic Maps, nyheter samt uppdateringar från vårt team"
|
||||
extra:
|
||||
menu_title: Nyheter
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: De senaste nyheterna och uppdateringarna från vårt team"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Organic Maps: Ekibimizden son haberler ve güncellemeler"
|
||||
description: Ekibimizin en son Organic Maps bültenleri, haberleri ve güncellemeleri ile iletişimde kalın
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
extra:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "Залишайтеся на зв'язку з останніми випусками Organic Maps, новинами та оновленнями від нашої команди"
|
||||
extra:
|
||||
menu_title: Новини
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps: Останні новини та оновлення від нашої команди"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "有机地图:我们团队的最新消息和更新"
|
||||
description: 与我们团队的最新有机地图发布、新闻和更新保持联系
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
extra:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
description: "关注Organic Maps新版发布、新闻和更新"
|
||||
extra:
|
||||
menu_title: 新闻
|
||||
template: news/list.html
|
||||
page_template: news/page.html
|
||||
sort_by: date
|
||||
title: "Organic Maps:近期新闻和更新"
|
||||
|
|
|
@ -11,7 +11,11 @@
|
|||
{%- set resource_path = resource.path %}
|
||||
{%- set resource_title = resource.name %}
|
||||
{%- elif taxonomy %}{# taxonomy has only 'name' and 'slug' properties #}
|
||||
{% set resource = taxonomy.name ~ "/_index.md" %}
|
||||
{% if lang == 'en' %}
|
||||
{% set resource = taxonomy.name ~ "/_index.md" %}
|
||||
{% else %}
|
||||
{% set resource = taxonomy.name ~ "/_index." ~ lang ~ ".md" %}
|
||||
{% endif %}
|
||||
{% set resource = get_section(path=resource) %}
|
||||
{%- set resource_title = resource.title %}
|
||||
{%- set resource_path = resource.path %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{# Taxonomy template to render /news/ #}
|
||||
{# Taxonomy and section template to render /news/ #}
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -2,9 +2,13 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
{# TODO: Localize titles #}
|
||||
{# TODO: Show articles tagged for the en language if they are missing for the other language #}
|
||||
{% set rootNewsSection = get_section(path="news/_index.md") %}
|
||||
{% if lang == 'en' %}
|
||||
{% set rootNewsSection = "news/_index.md" %}
|
||||
{% else %}
|
||||
{% set rootNewsSection = "news/_index." ~ lang ~ ".md" %}
|
||||
{% endif %}
|
||||
{% set rootNewsSection = get_section(path=rootNewsSection) %}
|
||||
<h1>{{ rootNewsSection.title }}</h1>
|
||||
<h2>{{ term.name }}</h2>
|
||||
{%- for page in term.pages -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue