From d2c80668610a36c84c0679ff4313de56cc9de5ed Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 5 Feb 2019 13:52:17 +0100 Subject: [PATCH] Make "Older/Newer posts" texts configurable --- README.md | 2 ++ exampleSite/config.toml | 2 ++ layouts/partials/pagination.html | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65663c4..47e0681 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ paginate = 5 writtenBy = "Written by" readMore = "Read more" readOtherPosts = "Read other posts" + newerPosts = "Newer posts" + olderPosts = "Older posts" [languages.en.params.logo] logoText = "hello friend" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7573f11..e315abf 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -20,6 +20,8 @@ paginate = 5 writtenBy = "Written by" readMore = "Read more" readOtherPosts = "Read other posts" + newerPosts = "Newer posts" + olderPosts = "Older posts" [languages.en.params.logo] logoText = "hello friend" diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index ec762d3..55c8b57 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -4,14 +4,14 @@ - Newer posts + {{ $.Site.Params.NewerPosts | default "Newer posts" }} {{ end }} {{ if .Paginator.HasNext }} - Older posts + {{ $.Site.Params.OlderPosts | default "Older posts" }}