diff options
Diffstat (limited to 'docs/build')
| -rw-r--r-- | docs/build/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/build/index.js b/docs/build/index.js index 5321fa750..1a9cb387c 100644 --- a/docs/build/index.js +++ b/docs/build/index.js @@ -2,6 +2,7 @@ var hogan = require('hogan.js') , fs = require('fs') , prod = process.argv[2] == 'production' + , title = 'Bootstrap' var layout, pages @@ -23,6 +24,16 @@ pages.forEach(function (name) { context[name.replace(/\.mustache$/, '')] = 'active' context._i = true context.production = prod + context.title = name + .replace(/\.mustache/, '') + .replace(/\-.*/, '') + .replace(/(.)/, function ($1) { return $1.toUpperCase() }) + + if (context.title == 'Index') { + context.title = title + } else { + context.title += ' ยท ' + title + } page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] }) page = layout.render(context, { |
