update page layout and account for about page

This commit is contained in:
ansuz
2016-12-28 17:09:02 +01:00
parent 49d80d91d9
commit 6a46d6e06c
10 changed files with 63 additions and 49 deletions

View File

@@ -26,17 +26,20 @@ var fragments = {};
'fork',
'terms',
'privacy',
'about',
'logo',
'noscript',
].forEach(function (name) {
fragments[name] = read('./fragments/' + name + '.html');
});
// build static pages
['index', 'privacy', 'terms'].forEach(function (page) {
['index', 'privacy', 'terms', 'about',].forEach(function (page) {
var source = swap(template, {
fork: fragments.fork,
main: fragments[page],
logo: fragments.logo,
noscript: fragments.noscript,
});
write('../' + page + '.html', source);
});