safe guard for index page

This commit is contained in:
Alex Wolfe 2015-04-26 08:07:32 -07:00
parent 3805b9a537
commit 976af3ce86
1 changed files with 2 additions and 1 deletions

View File

@ -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>