safe guard for index page
This commit is contained in:
parent
3805b9a537
commit
976af3ce86
|
@ -10,5 +10,6 @@ if tertiaryPath
|
||||||
name = page.title
|
name = page.title
|
||||||
selected = current.path[5] == slug ? 'is-selected':''
|
selected = current.path[5] == slug ? 'is-selected':''
|
||||||
|
|
||||||
|
if slug != "index"
|
||||||
li(class="#{selected}")<a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" md-button>#{name}</a>
|
li(class="#{selected}")<a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" md-button>#{name}</a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue