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

Commit 976af3c

Browse files
committed
safe guard for index page
1 parent 3805b9a commit 976af3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/docs/_includes/sidenav/_tertiary.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ if tertiaryPath
1010
name = page.title
1111
selected = current.path[5] == slug ? 'is-selected':''
1212

13-
li(class="#{selected}")<a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" md-button>#{name}</a>
13+
if slug != "index"
14+
li(class="#{selected}")<a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" md-button>#{name}</a>
1415

0 commit comments

Comments
 (0)