Skip to content

Commit

Permalink
Update the post-launch 2020 home page (#1651)
Browse files Browse the repository at this point in the history
* 2020 home page

* remove PWA and Jamstack from TODO

* Generalise index content across years

Co-authored-by: Barry <[email protected]>
  • Loading branch information
rviscomi and tunetheweb authored Dec 7, 2020
1 parent 4cacc06 commit e6fca10
Show file tree
Hide file tree
Showing 29 changed files with 42 additions and 124 deletions.
6 changes: 2 additions & 4 deletions src/config/2020.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@
"part": "II",
"chapter": "14",
"title": "PWA",
"slug": "pwa",
"todo": true
"slug": "pwa"
}
]
},
Expand All @@ -134,8 +133,7 @@
"part": "III",
"chapter": "17",
"title": "Jamstack",
"slug": "jamstack",
"todo": true
"slug": "jamstack"
}
]
},
Expand Down
7 changes: 4 additions & 3 deletions src/server/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from flask import request, redirect, url_for, render_template as flask_render_template
from .config import TEMPLATES_DIR, get_config, get_timestamps_config, \
DEFAULT_YEAR, SUPPORTED_LANGUAGES, SUPPORTED_YEARS
DEFAULT_YEAR, SUPPORTED_LANGUAGES, SUPPORTED_YEARS, SUPPORTED_CHAPTERS
from .language import get_language, DEFAULT_LANGUAGE
from werkzeug.routing import BaseConverter
import os.path
Expand Down Expand Up @@ -49,11 +49,12 @@ def render_template(template, *args, **kwargs):
date_published = get_file_date_info(template, "date_published")
date_modified = get_file_date_info(template, "date_modified")
ebook_size_in_mb = get_ebook_size_in_mb(lang, year)
supported_chapters = SUPPORTED_CHAPTERS.get(year)

kwargs.update(year=year, lang=lang, language=language, supported_languages=template_supported_languages,
supported_years=template_supported_years, all_supported_years=SUPPORTED_YEARS,
date_published=date_published, date_modified=date_modified, ebook_size_in_mb=ebook_size_in_mb,
get_file_date_info=get_file_date_info, config=config)
supported_chapters=supported_chapters, date_published=date_published, date_modified=date_modified,
ebook_size_in_mb=ebook_size_in_mb, get_file_date_info=get_file_date_info, config=config)
return flask_render_template(template, *args, **kwargs)


Expand Down
3 changes: 0 additions & 3 deletions src/templates/en/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}The Web Almanac is an annual state of the web report combining the expertise of the web community with the data and trends of the HTTP Archive.{% endblock %}

{% block twitter_image_alt %}The {{ year }} Web Almanac{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive's annual<br> <b>state of the web</b> report{% endblock %}
9 changes: 0 additions & 9 deletions src/templates/en/2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@
{% block description %}The Web Almanac is an annual state of the web report combining the expertise of the web community with the data and trends of the HTTP Archive.{% endblock %}

{% block twitter_image_alt %}The {{ year }} Web Almanac{% endblock %}

{% block intro_title %}{{ self.coming_soon() }}{% endblock %}
{% block intro_sub_title %}The {{ year }} <b>state of the web</b> report{% endblock %}

{% block mission %}
<p>
Experts from around the web community are currently hard at work planning, analyzing, and writing content for the {{ year }} edition of the Web Almanac, which is on track to be published at the end of the year.
</p>
{% endblock %}
5 changes: 4 additions & 1 deletion src/templates/en/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
</span>
{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive's annual<br> <b>state of the web</b> report{% endblock %}

{% block mission %}
<p>
Our mission is to combine the raw stats and trends of the HTTP Archive with the expertise of the web community. The Web Almanac is a comprehensive report on the state of the web, backed by real data and trusted web experts. It is comprised of 20 chapters spanning aspects of page content, user experience, publishing, and distribution.
Our mission is to combine the raw stats and trends of the HTTP Archive with the expertise of the web community. The Web Almanac is a comprehensive report on the state of the web, backed by real data and trusted web experts. It is comprised of {{ supported_chapters | length }} chapters spanning aspects of page content, user experience, publishing, and distribution.
</p>
{% endblock %}

Expand Down
3 changes: 0 additions & 3 deletions src/templates/es/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}Web Almanac es un estado anual de la web que combina las estadísticas y tendencias sin procesar del HTTP Archive con la experiencia de la comunidad web{% endblock %}

{% block twitter_image_alt %}Web Almanac {{ year }}{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive informe del<br><b>estado de la web</b> anual{% endblock %}
9 changes: 0 additions & 9 deletions src/templates/es/2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@
{% block description %}Web Almanac es un informe anual del estado la Web que combina la experiencia de la comunidad con los datos y tendencias del HTTP Archive.{% endblock %}

{% block twitter_image_alt %}Web Almanac {{ year }}{% endblock %}

{% block intro_title %}{{ self.coming_soon() }}{% endblock %}
{% block intro_sub_title %}El informe del <b>estado de la Web</b> de {{ year }}{% endblock %}

{% block mission %}
<p>
Expertos de la comunidad web están trabajando duro ahora mismo, preparando, analizando y escribiendo contenido para la edición del Web Almanac de {{ year }}, cuya publicación está prevista pra finales de año.
</p>
{% endblock %}
5 changes: 4 additions & 1 deletion src/templates/es/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
</span>
{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive informe del<br><b>estado de la web</b> anual{% endblock %}

{% block mission %}
<p>
Nuestra misión es combinar las estadísticas y tendencias sin procesar del HTTP Archive con la experiencia de la comunidad web. Web Almanac es un informe exhaustivo sobre el estado de la web, respaldado por datos reales y expertos web de confianza. Se compone de 20 capítulos que abarcan aspectos del contenido de la página, la experiencia del usuario, la publicación y la distribución.
Nuestra misión es combinar las estadísticas y tendencias sin procesar del HTTP Archive con la experiencia de la comunidad web. Web Almanac es un informe exhaustivo sobre el estado de la web, respaldado por datos reales y expertos web de confianza. Se compone de {{ supported_chapters | length }} capítulos que abarcan aspectos del contenido de la página, la experiencia del usuario, la publicación y la distribución.
</p>
{% endblock %}

Expand Down
3 changes: 0 additions & 3 deletions src/templates/fr/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}Le Web Almanac est un rapport annuel sur l’état du Web qui combine l’expertise de la communauté Web avec les données et tendances de HTTP Archive.{% endblock %}

{% block twitter_image_alt %}Web Almanac {{ year }}{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}Rapport annuel<br>de HTTP Archive sur<br><b>l’état du Web</b>{% endblock %}
9 changes: 0 additions & 9 deletions src/templates/fr/2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@
{% block description %}Le Web Almanac est un rapport annuel sur l’état du Web qui combine l’expertise de la communauté Web avec les données et tendances de HTTP Archive.{% endblock %}

{% block twitter_image_alt %}Web Almanac {{ year }}{% endblock %}

{% block intro_title %}{{ self.coming_soon() }}{% endblock %}
{% block intro_sub_title %}Le rapport {{ year }} sur <b>l’état du Web</b>{% endblock %}

{% block mission %}
<p>
Des expertes et experts de toute la communauté du web travaillent actuellement à la planification, l'analyse et la rédaction du contenu de l'édition {{ year }} du Web Almanac, qui devrait être publiée à la fin de l'année.
</p>
{% endblock %}
5 changes: 4 additions & 1 deletion src/templates/fr/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
</span>
{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}Rapport annuel<br>de HTTP Archive sur<br><b>l’état du Web</b>{% endblock %}

{% block mission %}
<p>
Notre mission est de combiner les statistiques brutes et les tendances de HTTP Archive avec l’expertise de la communauté web. Le Web Almanac est un rapport complet sur l’état du Web, soutenu par des données réelles et des experts du Web. Il est composé de 20 chapitres couvrant l’expérience utilisateur, le contenu des pages, leur publication et leur distribution.
Notre mission est de combiner les statistiques brutes et les tendances de HTTP Archive avec l’expertise de la communauté web. Le Web Almanac est un rapport complet sur l’état du Web, soutenu par des données réelles et des experts du Web. Il est composé de {{ supported_chapters | length }} chapitres couvrant l’expérience utilisateur, le contenu des pages, leur publication et leur distribution.
</p>
{% endblock %}

Expand Down
3 changes: 0 additions & 3 deletions src/templates/hi/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}Web Almanac वेब रिपोर्ट की एक वार्षिक स्थिति है जो वेब समुदाय की विशेषज्ञता को HTTP संग्रह के डेटा और रुझानों के साथ जोड़ती है।{% endblock %}

{% block twitter_image_alt %}{{ year }} Web Almanac{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive के वार्षिक<br> <b>वेब की स्थिति</b> की रिपोर्ट{% endblock %}
9 changes: 0 additions & 9 deletions src/templates/hi/2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@
{% block description %}Web Almanac वेब रिपोर्ट की एक वार्षिक स्थिति है जो वेब समुदाय की विशेषज्ञता को HTTP संग्रह के डेटा और रुझानों के साथ जोड़ती है।{% endblock %}

{% block twitter_image_alt %}{{ year }} Web Almanac{% endblock %}

{% block intro_title %}{{ self.coming_soon() }}{% endblock %}
{% block intro_sub_title %}{{ year }} <b>वेब की स्थिति</b> की रिपोर्ट{% endblock %}

{% block mission %}
<p>
वेब समुदाय के विशेषज्ञ वर्तमान में Web Almanac के {{ year }} संस्करण के लिए कार्य योजना, विश्लेषण, और लेखन सामग्री पर कार्य कर रहे हैं, जो वर्ष के अंत में प्रकाशित होने के लिए ट्रैक पर है।
</p>
{% endblock %}
5 changes: 4 additions & 1 deletion src/templates/hi/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
</span>
{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive के वार्षिक<br> <b>वेब की स्थिति</b> की रिपोर्ट{% endblock %}

{% block mission %}
<p>
हमारा उद्देश्य वेब समुदाय की विशेषज्ञता के साथ HTTP Archive के कच्चे आँकड़ों और रुझानों को जोड़ना है। Web Almanac वेब की स्थिति पर एक व्यापक रिपोर्ट है, जो वास्तविक डेटा और विश्वसनीय वेब विशेषज्ञों द्वारा समर्थित है। यह पृष्ठ सामग्री, यूजर एक्सपीरियंस, प्रकाशन, और वितरण के पहलुओं को फैलाने वाले 20 अध्यायों से युक्त है।
हमारा उद्देश्य वेब समुदाय की विशेषज्ञता के साथ HTTP Archive के कच्चे आँकड़ों और रुझानों को जोड़ना है। Web Almanac वेब की स्थिति पर एक व्यापक रिपोर्ट है, जो वास्तविक डेटा और विश्वसनीय वेब विशेषज्ञों द्वारा समर्थित है। यह पृष्ठ सामग्री, यूजर एक्सपीरियंस, प्रकाशन, और वितरण के पहलुओं को फैलाने वाले {{ supported_chapters | length }} अध्यायों से युक्त है।
</p>
{% endblock %}

Expand Down
3 changes: 0 additions & 3 deletions src/templates/ja/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}Web Almanacは、Webコミュニティの専門知識とHTTP Archiveのデータやトレンドを組み合わせた、毎年恒例のWeb状態のレポートです。{% endblock %}

{% block twitter_image_alt %}{{ year }} Web Almanac{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archiveの年次報告書<br> <b>ウェブの状態</b>レポート{% endblock %}
9 changes: 0 additions & 9 deletions src/templates/ja/2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@
{% block description %}Web Almanacは、Webコミュニティの専門知識とHTTP Archiveのデータやトレンドを組み合わせた、毎年恒例のWeb状態のレポートです。{% endblock %}

{% block twitter_image_alt %}{{ year }} Web Almanac{% endblock %}

{% block intro_title %}{{ self.coming_soon() }}{% endblock %}
{% block intro_sub_title %}{{ year }}の<b>web状況</b>報告{% endblock %}

{% block mission %}
<p>
現在、ウェブ・コミュニティの専門家たちが、年末に発行を予定しているWeb Almanac {{ year }}年版に向けて、企画、分析、コンテンツの執筆に奔走しています。
</p>
{% endblock %}
5 changes: 4 additions & 1 deletion src/templates/ja/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@

{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archiveの年次報告書<br> <b>ウェブの状態</b>レポート{% endblock %}

{% block mission %}
<p>
私たちの使命は、HTTP Archiveの生の統計やトレンドを、ウェブコミュニティの専門知識と組み合わせることです。Web Almanacは、実際のデータと信頼できるウェブの専門家に裏付けられた、ウェブの状態に関する包括的なレポートです。ページコンテンツ、ユーザー体験、パブリッシング、配布などの側面を網羅した20の章で構成されています
私たちの使命は、HTTP Archiveの生の統計やトレンドを、ウェブコミュニティの専門知識と組み合わせることです。Web Almanacは、実際のデータと信頼できるウェブの専門家に裏付けられた、ウェブの状態に関する包括的なレポートです。ページコンテンツ、ユーザー体験、パブリッシング、配布などの側面を網羅した{{ supported_chapters | length }}の章で構成されています
</p>
{% endblock %}

Expand Down
3 changes: 0 additions & 3 deletions src/templates/pt/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}Web Almanac é um relatório anual sobre o estado da web que combina a experiência da comunidade da web com os dados e tendências do HTTP Archive.{% endblock %}

{% block twitter_image_alt %}Web Almanac {{ year }} {% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive relatório annual do <br> <b>estado da web</b>{% endblock %}
9 changes: 0 additions & 9 deletions src/templates/pt/2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@
{% block description %}Web Almanac é um relatório anual sobre o estado da web que combina a experiência da comunidade da web com os dados e tendências do HTTP Archive.{% endblock %}

{% block twitter_image_alt %}Web Almanac {{ year }} {% endblock %}

{% block intro_title %}{{ self.coming_soon() }}{% endblock %}
{% block intro_sub_title %}O relatório do <b>estado da web</b> de {{ year }}{% endblock %}

{% block mission %}
<p>
Especialistas de toda a comunidade da web estão atualmente trabalhando arduamente para planejar, analisar e escrever o conteúdo para a edição de {{ year }} do Web Almanac, que está prestes a ser publicado no final do ano.
</p>
{% endblock %}
5 changes: 4 additions & 1 deletion src/templates/pt/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
</span>
{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive relatório annual do <br> <b>estado da web</b>{% endblock %}

{% block mission %}
<p>
Nossa missão é combinar as estatísticas brutas e as tendências do HTTP Archive com a experiência da comunidade da web. O Web Almanac é um relatório abrangente sobre o estado da Web, apoiado por dados reais e especialistas confiáveis da Web. É composto por 20 capítulos que abrangem aspectos do conteúdo da página, experiência do usuário, publicação e distribuição.
Nossa missão é combinar as estatísticas brutas e as tendências do HTTP Archive com a experiência da comunidade da web. O Web Almanac é um relatório abrangente sobre o estado da Web, apoiado por dados reais e especialistas confiáveis da Web. É composto por {{ supported_chapters | length }} capítulos que abrangem aspectos do conteúdo da página, experiência do usuário, publicação e distribuição.
</p>
{% endblock %}

Expand Down
3 changes: 0 additions & 3 deletions src/templates/ru/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}Web Almanac — это ежегодный отчёт о состоянии веба на основе данных и тенденций, собранных HTTP Archive и с учётом мнения сообщества.{% endblock %}

{% block twitter_image_alt %}Web Almanac за {{ year }} год{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}Ежегодный отчёт<br>HTTP Archive<br>о <b>состоянии веба</b>{% endblock %}
9 changes: 0 additions & 9 deletions src/templates/ru/2020/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@
{% block description %}Web Almanac — это ежегодный отчёт о состоянии веба на основе данных и тенденций, собранных HTTP Archive и с учётом мнения сообщества.{% endblock %}

{% block twitter_image_alt %}Web Almanac за {{ year }} год{% endblock %}

{% block intro_title %}{{ self.coming_soon() }}{% endblock %}
{% block intro_sub_title %}Ежегодный отчёт<br>HTTP Archive<br>о <b>состоянии веба</b>{% endblock %}

{% block mission %}
<p>
Сейчас эксперты со всего веб-сообщества напряженно работают над планированием, анализом и написанием контента для отчёта Web Almanac {{ year }}, который будет опубликован в конце года.
</p>
{% endblock %}
5 changes: 4 additions & 1 deletion src/templates/ru/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
</span>
{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}Ежегодный отчёт<br>HTTP Archive<br>о <b>состоянии веба</b>{% endblock %}

{% block mission %}
<p>
Наша миссия заключается в том, чтобы объединить необработанные статистические данные и тренды HTTP Archive, опираясь на опыт веб-сообщества. Web Almanac — это всеобъемлющий отчёт о состоянии веба, подкрепленный реальными данными и подтверждённый доверенными экспертами в области веба. Он состоит из 20 глав, охватывающих аспекты содержания страниц, особенности пользовательского взаимодействия, публикации и распространения.
Наша миссия заключается в том, чтобы объединить необработанные статистические данные и тренды HTTP Archive, опираясь на опыт веб-сообщества. Web Almanac — это всеобъемлющий отчёт о состоянии веба, подкрепленный реальными данными и подтверждённый доверенными экспертами в области веба. Он состоит из {{ supported_chapters | length }} глав, охватывающих аспекты содержания страниц, особенности пользовательского взаимодействия, публикации и распространения.
</p>
{% endblock %}

Expand Down
3 changes: 0 additions & 3 deletions src/templates/zh-CN/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
{% block description %}Web Almanac是结合了网络社区的专业知识和HTTP Archive的数据和趋势的网络年度报告,{% endblock %}

{% block twitter_image_alt %}{{ year }} Web Almanac网络年鉴{% endblock %}

{% block intro_title %}Web Almanac{% endblock %}
{% block intro_sub_title %}HTTP Archive的年度报告<br> <b>网络状态</b>报告{% endblock %}
Loading

0 comments on commit e6fca10

Please sign in to comment.