2015-04-18 12:30:29 -04:00
|
|
|
currentPage = false
|
|
|
|
nextPage = false
|
|
|
|
data = public.docs[current.path[1]][current.path[2]][current.path[3]]._data
|
|
|
|
|
|
|
|
for page, slug in data
|
|
|
|
|
2015-04-22 02:09:13 -04:00
|
|
|
if slug != "index"
|
|
|
|
// CHECK IF CURRENT PAGE IS SET, THEN SET NEXT PAGE
|
|
|
|
if currentPage
|
|
|
|
if !nextPage
|
|
|
|
.l-sub-section
|
|
|
|
h3 Next Step
|
|
|
|
a(href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html") #{page.title}
|
2015-04-18 12:30:29 -04:00
|
|
|
|
2015-04-22 02:09:13 -04:00
|
|
|
//NEXT PAGE HAS NOW BEEN SET
|
|
|
|
nextPage = true
|
2015-04-18 12:30:29 -04:00
|
|
|
|
2015-04-22 02:09:13 -04:00
|
|
|
// SET CURRENT PAGE FLAG WHEN YOU PASS IT
|
|
|
|
if current.path[4] == slug
|
2015-05-03 23:28:21 -04:00
|
|
|
currentPage = true
|