From e0c13ba00186d079f5507e8d56c48644a92528c5 Mon Sep 17 00:00:00 2001 From: jultty Date: Sun, 17 Nov 2024 18:01:02 -0300 Subject: [PATCH] Localize homepage headers --- templates/index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index 109eb7b..153bddd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -20,7 +20,9 @@ {% block content %} -

Latest posts

+

+ {%- if lang == "pt" %}Últimos posts{% else %}Latest posts{% endif -%} +

{%- if lang == "pt" %} {%- set posts = get_section(path="posts/_index.pt.md") %} {%- else %} @@ -41,7 +43,9 @@ {%- if lang == "pt" %}Ver todos{% else %}See all{% endif %} -

Latest notes

+

+ {%- if lang == "pt" %}Últimas notas{% else %}Latest notes{% endif -%} +

{%- if lang == "pt" %} {%- set notes = get_section(path="notes/_index.pt.md") %} {%- else %} @@ -62,7 +66,9 @@ {%- if lang == "pt" %}Ver todos{% else %}See all{% endif %} -

Latest links

+

+ {%- if lang == "pt" %}Últimos links{% else %}Latest links{% endif -%} +

{%- if lang == "pt" %} {%- set links = get_section(path="links/_index.pt.md") %} {%- else %}