aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Chipiga2024-08-10 23:52:30 +0500
committerGleb Chipiga2024-08-10 23:52:30 +0500
commit1229b7ccf18e3892c50d361f5ebc9b874c8a9a12 (patch)
tree56742cd6c52c6ab58cf4e1bf58cdcf0ea801b2da
parentab91b5c742b65826407cb2c6695a07947f88df28 (diff)
downloadabridge-1229b7ccf18e3892c50d361f5ebc9b874c8a9a12.tar.gz
abridge-1229b7ccf18e3892c50d361f5ebc9b874c8a9a12.tar.bz2
abridge-1229b7ccf18e3892c50d361f5ebc9b874c8a9a12.zip
Fix 'more' translation
-rw-r--r--templates/index.html4
-rw-r--r--templates/page.html4
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/index.html b/templates/index.html
index 802f328..2c9fdfb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -51,7 +51,9 @@ This Template can also be used directly for the index eg: example.com/ or as the
{{ page.content | striptags | truncate(length=150) | safe }}
{%- elif page.extra.static_thumbnail %}
{%- endif %}
- <a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">...more</a>
+ <a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">
+ ...{{ macros::translate(key="more", default="more", i18n=i18n) }}
+ </a>
</div>
{%- if config.extra.meta_index.position %}
{%- if config.extra.meta_index.position == "bottom" or config.extra.meta_index.position == "both" %}
diff --git a/templates/page.html b/templates/page.html
index e2a807c..24c628a 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -117,7 +117,7 @@
{# Hides the next couple of pages if the current section is more than 3 away from start #}
{%- if current_section_index > 3 %}
<details>
- <summary>More...</summary>
+ <summary>{{ macros::translate(key="more", default="more", i18n=i18n) | title }}...</summary>
</details>
<div class="hidden_li">
{%- for inner in sorted_array | slice(start=1, end=(current_section_index - 2)) %}
@@ -156,7 +156,7 @@
{%- if current_section_index < num_pages - 4 %}
<details>
- <summary>More...</summary>
+ <summary>{{ macros::translate(key="more", default="more", i18n=i18n) | title }}...</summary>
</details>
<div class="hidden_li">
{%- for inner in sorted_array | slice(start=(current_section_index + 3), end=(num_pages - 1)) %}