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

chore: update next-item for hidden #2032

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions public/_includes/_next-item.jade
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ for page, slug in data

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

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