diff --git a/public/_includes/_version-dropdown.jade b/public/_includes/_version-dropdown.jade index cafc405840..4ba540e4f7 100644 --- a/public/_includes/_version-dropdown.jade +++ b/public/_includes/_version-dropdown.jade @@ -3,11 +3,16 @@ title = "JavaScript " filter = /(\.html$)/ replace = /(\.html$)|(^index\.html$)/ version = '' +page = '' if current.path[2] version = current.path[2].replace(/\_+/gm, ".") + +if current.path[3] + page = current.path[3] + '.html' + 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 #{name} #{libVersion} + li #{name} #{libVersion}