From 6102d79e6ecc67584bff6c97a09f7a74db89cdc8 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 22 Feb 2020 02:52:27 +0800 Subject: [PATCH] Add configurable label to post-nav button. --- _data/label.yml | 3 +++ assets/css/post.scss | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_data/label.yml b/_data/label.yml index d170552..53761bc 100644 --- a/_data/label.yml +++ b/_data/label.yml @@ -12,5 +12,8 @@ panel: post: relate_posts: "Further Reading" + button: + next: Newer + previous: Older search_hint: "Search" # text show on search bar \ No newline at end of file diff --git a/assets/css/post.scss b/assets/css/post.scss index da762ea..698be68 100644 --- a/assets/css/post.scss +++ b/assets/css/post.scss @@ -27,8 +27,8 @@ font-size: 0.85rem; } -$prompt-older: "Older"; -$prompt-newer: "Newer"; +$prompt-older: "{{ site.data.label.post.button.previous }}"; +$prompt-newer: "{{ site.data.label.post.button.next }}"; .post-navigation { padding-top: 3rem;