From 9307cbdff5833da6ce51b037c02a6eb5e09abf23 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 6 May 2025 01:43:11 +0200 Subject: [PATCH] fixes english links --- .../tech/why-am-i-publishing-under-non-foss-license.md | 1 + templates/meta-section.html | 8 ++++++-- templates/section.html | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/content/log/tech/why-am-i-publishing-under-non-foss-license.md b/content/log/tech/why-am-i-publishing-under-non-foss-license.md index 6a938a2..84a58ac 100644 --- a/content/log/tech/why-am-i-publishing-under-non-foss-license.md +++ b/content/log/tech/why-am-i-publishing-under-non-foss-license.md @@ -5,6 +5,7 @@ authors = [] template = "blog-page.html" [extra] lang = "fr" +en.title = "Why am I publishing under a non-FLOSS license?" +++ Un sujet interessant et controversé, hein ? Absolument ! diff --git a/templates/meta-section.html b/templates/meta-section.html index 43459d1..21c7dd5 100644 --- a/templates/meta-section.html +++ b/templates/meta-section.html @@ -13,10 +13,14 @@ {%- for page in section.pages %} {%- if loop.index <= 5 %}
  • - {{ page.date ~ "// " ~ page.title }} + {% if lang == "en" %} + {{ page.date ~ "// " ~ page.extra.en.title }} + {% else %} + {{ page.date ~ "// " ~ page.title }} + {% endif %}
  • {%- else -%} - {{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }} + {{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }} {% break %} {%- endif %} {%- endfor %} diff --git a/templates/section.html b/templates/section.html index 7696bb5..fea4216 100644 --- a/templates/section.html +++ b/templates/section.html @@ -14,7 +14,7 @@