Skip to content

Commit f11cb0c

Browse files
committed
Tweaks
1 parent c0f6d95 commit f11cb0c

File tree

16 files changed

+51
-53
lines changed

16 files changed

+51
-53
lines changed

src/static/css/almanac.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,16 @@ aside.banner p {
347347
margin: 0;
348348
}
349349

350+
aside,
351+
.note {
352+
font-style: italic;
353+
}
354+
355+
aside em,
356+
.note em {
357+
font-style: normal;
358+
}
359+
350360
/* Main title, subtitle and modifiers */
351361
.title,
352362
.subtitle {

src/static/css/page.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -454,16 +454,6 @@
454454
right: -1.5rem;
455455
}
456456

457-
aside,
458-
.note {
459-
font-style: italic;
460-
}
461-
462-
aside em,
463-
.note em {
464-
font-style: normal;
465-
}
466-
467457
table,
468458
figure {
469459
max-width: 100%;

src/templates/base/base.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@
106106

107107
{% endblock %}
108108

109+
{% block call_for_contributors_link %}https://github.com/HTTPArchive/almanac.httparchive.org/discussions/4062{% endblock %}
110+
109111
{% block contributors %}{{ config.contributors.keys() | length }}{% endblock %}
110112

111113
{% block non_chapter_nav_links %}
@@ -634,10 +636,6 @@
634636
{% endblock %}
635637
{% endblock %}
636638

637-
{% block call_for_contributors %}
638-
https://github.com/HTTPArchive/almanac.httparchive.org/discussions/4062
639-
{% endblock %}
640-
641639
{% macro figure_dropdown(metadata, chapter_config, id, sheets_gid="", sql_file="", image="", caption="") %}
642640
{% if sheets_gid != "" or sql_file != "" or image != "" %}
643641
<div class="figure-dropdown nav-dropdown">

src/templates/en/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
You’re viewing a previous edition of the Web Almanac.
2525
Check out the <a href="/{{ lang }}/{{ DEFAULT_YEAR }}/{% if chapter_lang_exists(lang, DEFAULT_YEAR, slug) or page_lang_exists(lang, DEFAULT_YEAR, slug) %}{{ slug }}{% endif %}">{{ DEFAULT_YEAR }} edition!</a>
2626
</p>
27-
{%- elif self.call_for_contributors() | trim | length > 0 -%}
27+
{%- elif self.call_for_contributors_link() | trim | length > 0 -%}
2828
<p>
29-
📣 <a href="{{ self.call_for_contributors() }}">
30-
<b>Call for Contributors:</b></a> Help create the {{ now().year }} Web Almanac— be part of the team shaping this year’s edition!
29+
📣 <a hreflang="en" href="{{ self.call_for_contributors_link() }}"><b>Call for Contributors</b></a>:
30+
Help create the {{ now().year }} Web Almanac— be part of the team shaping this year’s edition!
3131
</p>
3232
{%- endif -%}
3333
{% endblock %}

src/templates/es/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
Estás viendo una edición anterior del Web Almanac.
2525
¡Consulta <a href="/{{ lang }}/{{ DEFAULT_YEAR }}/{% if chapter_lang_exists(lang, DEFAULT_YEAR, slug) or page_lang_exists(lang, DEFAULT_YEAR, slug) %}{{ slug }}{% endif %}">a edición de {{ DEFAULT_YEAR }}!</a>
2626
</p>
27-
{%- elif self.call_for_contributors() | trim | length > 0 -%}
27+
{%- elif self.call_for_contributors_link() | trim | length > 0 -%}
2828
<p>
29-
📣 <a href="{{ self.call_for_contributors() }}">
30-
<b>Convocatoria para colaboradores:</b></a> Ayuda a crear el Web Almanac {{ now().year }}— ¡sé parte del equipo que da forma a la edición de este año!
29+
📣 <a hreflang="en" href="{{ self.call_for_contributors_link() }}"><b>Convocatoria para colaboradores</b></a>:
30+
Ayuda a crear el Web Almanac {{ now().year }}— ¡sé parte del equipo que da forma a la edición de este año!
3131
</p>
3232
{%- endif -%}
3333
{% endblock %}

src/templates/fr/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
Vous consultez une édition précédente du Web Almanac.
2525
Découvrez <a href="/{{ lang }}/{{ DEFAULT_YEAR }}/{% if chapter_lang_exists(lang, DEFAULT_YEAR, slug) or page_lang_exists(lang, DEFAULT_YEAR, slug) %}{{ slug }}{% endif %}">l’édition {{ DEFAULT_YEAR }}!</a>
2626
</p>
27-
{%- elif self.call_for_contributors() | trim | length > 0 -%}
27+
{%- elif self.call_for_contributors_link() | trim | length > 0 -%}
2828
<p>
29-
📣 <a href="{{ self.call_for_contributors() }}">
30-
<b>Appel à contributions:</b></a> Aidez à créer le Web Almanac {{ now().year }} — faites partie de l'équipe qui façonne l'édition de cette année !
29+
📣 <a hreflang="en" href="{{ self.call_for_contributors_link() }}"><b>Appel à contributions</b></a>:
30+
Aidez à créer le Web Almanac {{ now().year }} — faites partie de l'équipe qui façonne l'édition de cette année !
3131
</p>
3232
{%- endif -%}
3333
{% endblock %}

src/templates/hi/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
आप वेब पंचांग का पिछला संस्करण देख रहे हैं।
2525
<a href="/{{ lang }}/{{ DEFAULT_YEAR }}/{% if chapter_lang_exists(lang, DEFAULT_YEAR, slug) or page_lang_exists(lang, DEFAULT_YEAR, slug) %}{{ slug }}{% endif %}">{{ DEFAULT_YEAR }} संस्करण</a> देखें!
2626
</p>
27-
{%- elif self.call_for_contributors() | trim | length > 0 -%}
27+
{%- elif self.call_for_contributors_link() | trim | length > 0 -%}
2828
<p>
29-
📣 <a href="{{ self.call_for_contributors() }}">
30-
<b>योगदानकर्ताओं के लिए आह्वान:</b></a> {{ now().year }} Web Almanac बनाने में मदद करें— इस वर्ष की संस्करण को आकार देने वाली टीम का हिस्सा बनें!
29+
📣 <a hreflang="en" href="{{ self.call_for_contributors_link() }}"><b>योगदानकर्ताओं के लिए आह्वान</b></a>:
30+
{{ now().year }} Web Almanac बनाने में मदद करें— इस वर्ष की संस्करण को आकार देने वाली टीम का हिस्सा बनें!
3131
</p>
3232
{%- endif -%}
3333
{% endblock %}

src/templates/it/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
Stai visualizzando un’edizione precedente del Web Almanac.
2525
Dai un’occhiata all’<a href="/{{ lang }}/{{ DEFAULT_YEAR }}/{% if chapter_lang_exists(lang, DEFAULT_YEAR, slug) or page_lang_exists(lang, DEFAULT_YEAR, slug) %}{{ slug }}{% endif %}">edizione del {{ DEFAULT_YEAR }}!</a>
2626
</p>
27-
{%- elif self.call_for_contributors() | trim | length > 0 -%}
27+
{%- elif self.call_for_contributors_link() | trim | length > 0 -%}
2828
<p>
29-
📣 <a href="{{ self.call_for_contributors() }}">
30-
<b>Chiamata per i contributori:</b></a> Aiuta a creare il Web Almanac {{ now().year }}— entra a far parte del team che darà forma all’edizione di quest’anno!
29+
📣 <a hreflang="en" href="{{ self.call_for_contributors_link() }}"><b>Chiamata per i contributori</b></a>:
30+
Aiuta a creare il Web Almanac {{ now().year }}— entra a far parte del team che darà forma all’edizione di quest’anno!
3131
</p>
3232
{%- endif -%}
3333
{% endblock %}

src/templates/ja/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
ご覧になっているのは、Web Almanac の以前の版です。
2525
<a href="/{{ lang }}/{{ DEFAULT_YEAR }}/{% if chapter_lang_exists(lang, DEFAULT_YEAR, slug) or page_lang_exists(lang, DEFAULT_YEAR, slug) %}{{ slug }}{% endif %}">{{ DEFAULT_YEAR }} 年版</a>をご覧ください。
2626
</p>
27-
{%- elif self.call_for_contributors() | trim | length > 0 -%}
27+
{%- elif self.call_for_contributors_link() | trim | length > 0 -%}
2828
<p>
29-
📣 <a href="{{ self.call_for_contributors() }}">
30-
<b>コントリビューター募集中:</b></a> {{ now().year }} Web Almanac の作成にご協力ください— 今年のエディションを形作るチームの一員になりましょう!
29+
📣 <a hreflang="en" href="{{ self.call_for_contributors_link() }}"><b>コントリビューター募集中</b></a>:
30+
{{ now().year }} Web Almanac の作成にご協力ください— 今年のエディションを形作るチームの一員になりましょう!
3131
</p>
3232
{%- endif -%}
3333
{% endblock %}

src/templates/nl/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
U bekijkt een eerdere editie van de Web Almanac.
2525
Bekijk de <a href="/{{ lang }}/{{ DEFAULT_YEAR }}/{% if chapter_lang_exists(lang, DEFAULT_YEAR, slug) or page_lang_exists(lang, DEFAULT_YEAR, slug) %}{{ slug }}{% endif %}">editie van {{ DEFAULT_YEAR }}!</a>
2626
</p>
27-
{%- elif self.call_for_contributors() | trim | length > 0 -%}
27+
{%- elif self.call_for_contributors_link() | trim | length > 0 -%}
2828
<p>
29-
📣 <a href="{{ self.call_for_contributors() }}">
30-
<b>Oproep aan bijdragers:</b></a> Help mee de Web Almanac {{ now().year }} te maken— en word onderdeel van het team dat deze editie vormgeeft!
29+
📣 <a hreflang="en" href="{{ self.call_for_contributors_link() }}"><b>Oproep aan bijdragers</b></a>:
30+
Help mee de Web Almanac {{ now().year }} te maken— en word onderdeel van het team dat deze editie vormgeeft!
3131
</p>
3232
{%- endif -%}
3333
{% endblock %}

0 commit comments

Comments
 (0)