Skip to content

Commit 368b676

Browse files
committed
Add configurable label to post-nav button.
1 parent 429baa3 commit 368b676

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

_data/label.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ panel:
1212

1313
post:
1414
relate_posts: "Further Reading"
15+
button:
16+
next: Newer
17+
previous: Older
1518

1619
search_hint: "Search" # text show on search bar

assets/css/post.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
font-size: 0.85rem;
2828
}
2929

30-
$prompt-older: "Older";
31-
$prompt-newer: "Newer";
30+
$prompt-older: "{{ site.data.label.post.button.previous }}";
31+
$prompt-newer: "{{ site.data.label.post.button.next }}";
3232

3333
.post-navigation {
3434
padding-top: 3rem;

0 commit comments

Comments
 (0)