From e3f04737279b8ac16e21390f97c75f5f6729dddf Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Mon, 24 Jul 2023 10:44:01 +0200 Subject: [PATCH] fix post pagination without post titles --- i18n/en.yaml | 6 ++++++ i18n/ru.yaml | 6 ++++++ layouts/partials/post-pagination.html | 6 ++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index f1f834c..fc85605 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -54,3 +54,9 @@ readNext: lastMod: other: "Last modified:" + +toNewPost: + other: "to new post" + +toOldPost: + other: "to old post" \ No newline at end of file diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 6ca2673..e0c70c9 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -51,3 +51,9 @@ readNext: lastMod: other: "Отредактировано:" + +toNewPost: + other: "к новой записи" + +toOldPost: + other: "к старой записи" \ No newline at end of file diff --git a/layouts/partials/post-pagination.html b/layouts/partials/post-pagination.html index 2130181..a589362 100644 --- a/layouts/partials/post-pagination.html +++ b/layouts/partials/post-pagination.html @@ -1,13 +1,15 @@ {{ if or ( .PrevInSection ) ( .NextInSection ) }} + {{ $toNewPostMessage := i18n "toNewPost" }} + {{ $toOldPostMessage := i18n "toOldPost" }}