Permalink
Browse files

fix this

  • Loading branch information...
1 parent acb84a7 commit 7deae4184ad472f42cf4214bdd89a61092e09356 @BonsaiDen committed Mar 26, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −1 build.js
  2. +2 −2 garden.jade
View
3 build.js
@@ -153,6 +153,7 @@ var Garden = Class(function(options) {
}
var options = {
+ pathPrefix: this.options.pathPrefix,
baseLanguage: this.options.language.default,
language: language,
languages: languages,
@@ -198,7 +199,7 @@ var Garden = Class(function(options) {
});
exports.build = function (options) {
- options = options || {dir: 'doc', template: 'garden.jade', out: 'site'};
+ options = options || {dir: 'doc', pathPrefix: 'JavaScript-Garden/', template: 'garden.jade', out: 'site'};
new Garden(options);
}
View
4 garden.jade
@@ -26,10 +26,10 @@ html(lang=language)
- each lang in languages
li(class=lang.id === language ? 'active' : '')
- if (lang.id === baseLanguage)
- a(href= '/', title=lang.title) #{lang.id}
+ a(href= '/' + pathPrefix, title=lang.title) #{lang.id}
- else
- a(href= '/JavaScript-Garden/' + lang.id, title=lang.title) #{lang.id}
+ a(href= '/' + pathPrefix + lang.id, title=lang.title) #{lang.id}
a(id='top', href='#intro', title='Back to top') #top
a(id='hide_menu', class='tablet') Hide Menu

0 comments on commit 7deae41

Please sign in to comment.