drop down logic now switches to page too
This commit is contained in:
parent
7d81ec2fae
commit
700136dd0f
|
@ -3,11 +3,16 @@ title = "JavaScript "
|
|||
filter = /(\.html$)/
|
||||
replace = /(\.html$)|(^index\.html$)/
|
||||
version = ''
|
||||
page = ''
|
||||
|
||||
<!-- Replace _ undscores with . dots -->
|
||||
if current.path[2]
|
||||
version = current.path[2].replace(/\_+/gm, ".")
|
||||
|
||||
<!-- Replace _ undscores with . dots -->
|
||||
if current.path[3]
|
||||
page = current.path[3] + '.html'
|
||||
|
||||
|
||||
<!-- VERSION TREE CREATOR MIXIN -->
|
||||
mixin tree(directory, urlPrefix, name, latest)
|
||||
|
@ -15,7 +20,7 @@ mixin tree(directory, urlPrefix, name, latest)
|
|||
for val, semvar in directory
|
||||
if semvar !== '.git' && semvar !== '_data'
|
||||
libVersion = (semvar == "latest") ? latest : semvar.replace(/\_+/gm, ".")
|
||||
li <a href="#{urlPrefix}/#{semvar}/" md-button>#{name} #{libVersion}</a>
|
||||
li <a href="#{urlPrefix}/#{semvar}/#{page}" md-button>#{name} #{libVersion}</a>
|
||||
|
||||
|
||||
<!-- BUTTON TITLE GENERATION -->
|
||||
|
|
Loading…
Reference in New Issue