next step now auto generated
This commit is contained in:
parent
9eef5a660a
commit
2f95c0d68d
|
@ -1,3 +1,21 @@
|
||||||
currentItem = false
|
currentPage = false
|
||||||
nextItem = false
|
nextPage = false
|
||||||
|
data = public.docs[current.path[1]][current.path[2]][current.path[3]]._data
|
||||||
|
|
||||||
|
for page, slug in data
|
||||||
|
|
||||||
|
// 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}
|
||||||
|
|
||||||
|
//NEXT PAGE HAS NOW BEEN SET
|
||||||
|
nextPage = true
|
||||||
|
|
||||||
|
// SET CURRENT PAGE FLAG WHEN YOU PASS IT
|
||||||
|
if current.path[4] == slug
|
||||||
|
currentPage = true
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue