aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake G2024-08-10 19:48:47 -0700
committerGitHub2024-08-10 19:48:47 -0700
commit93d7866a6f327327ba8bd98fffbdb17584389803 (patch)
treedbed8d25fe35f340dc75d62a01367c0bef7f67c8
parentdb4659273ddb878faa792563984b636dc6aa6a35 (diff)
parent1229b7ccf18e3892c50d361f5ebc9b874c8a9a12 (diff)
downloadabridge-93d7866a6f327327ba8bd98fffbdb17584389803.tar.gz
abridge-93d7866a6f327327ba8bd98fffbdb17584389803.tar.bz2
abridge-93d7866a6f327327ba8bd98fffbdb17584389803.zip
Merge pull request #197 from gleb-chipiga/fix_more_translation
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)) %}