Skip to content

Commit 19b2334

Browse files
committed
fixing bug that previous button missing addition of "hidden" class
1 parent 2597559 commit 19b2334

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

_layouts/page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ <h1 class="post-title-main">{{ page.title }}</h1>
6262
// PREVIOUS BUTTON
6363
if (typeof previous == 'undefined'){
6464
console.log("disabling previous button")
65+
$(".previous-button").addClass("hidden")
6566
} else if (previous == "#") {
6667
previous = $("li.active").prev().find("li").last().find('a').attr('href')
6768
$(".previous-button").closest('a').attr('href', previous)

0 commit comments

Comments
 (0)