Add a footer to the html pages

This commit is contained in:
yflory
2017-02-03 16:52:55 +01:00
parent 02439e0f61
commit 9c4c378d6a
13 changed files with 676 additions and 388 deletions

View File

@@ -31,12 +31,13 @@ var fragments = {};
'contact',
'logo',
'noscript',
'footer'
].forEach(function (name) {
fragments[name] = read('./fragments/' + name + '.html');
});
// build static pages
['index', 'privacy', 'terms', 'about', 'contact',].forEach(function (page) {
['index', 'privacy', 'terms', 'about', 'contact'].forEach(function (page) {
var source = swap(template, {
topbar: fragments.topbar,
fork: fragments.fork,
@@ -45,9 +46,11 @@ var fragments = {};
fork: fragments.fork,
logo: fragments.logo,
noscript: fragments.noscript,
footer: fragments.footer,
}),
logo: fragments.logo,
noscript: fragments.noscript,
footer: fragments.footer,
});
write('../' + page + '.html', source);
});