Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 22a3704

Browse files
Foxandxsswardbell
authored andcommitted
chore: update next-item for hidden
closes #2032
1 parent 2817467 commit 22a3704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/_includes/_next-item.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ for page, slug in data
66

77
// CHECK IF CURRENT PAGE IS SET, THEN SET NEXT PAGE
88
if currentPage
9-
if !nextPage && page.nextable
9+
if !nextPage && page.nextable && !page.hide
1010
.l-sub-section
1111
h3 Next Step
1212
a(href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html") #{page.title}
@@ -16,4 +16,4 @@ for page, slug in data
1616

1717
// SET CURRENT PAGE FLAG WHEN YOU PASS IT
1818
if current.path[4] == slug
19-
- var currentPage = true
19+
- var currentPage = true

0 commit comments

Comments
 (0)