aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJieiku2023-09-26 18:46:53 -0700
committerJieiku2023-09-26 18:46:53 -0700
commitf5d32f6032ea172d0f1076b1fa04c96c9205285b (patch)
treecb87b51826639c73a9f2055b011445819329263a /templates/index.html
parent0e3727b97a6297ac9cdbbf3753a301c182e356d6 (diff)
downloadabridge-f5d32f6032ea172d0f1076b1fa04c96c9205285b.tar.gz
abridge-f5d32f6032ea172d0f1076b1fa04c96c9205285b.tar.bz2
abridge-f5d32f6032ea172d0f1076b1fa04c96c9205285b.zip
i18n translation system refactor
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index d7091de..c2ced13 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -82,7 +82,7 @@ This Template can also be used directly for the index eg: example.com/ or as the
{%- endif %}
<div class="sblock">
<div class="blockdiv sticky">
- <span class="b s150">{%- if lang != config.default_language %}{{ trans(key="Recent_Posts" | safe, lang=lang) }}{% else %}Recent Posts{% endif %}</span>
+ <span class="b s150">{{ macros::translate(key="Recent", default="Recent", i18n=i18n) }}</span>
{%- set recent_items=config.extra.recent_items | default(value=9) -%}
{%- for page in section_item.pages | slice(end=recent_items) %}
{{- macros::page_listing(page=page, config=config) }}