rework templates and build system

This commit is contained in:
ansuz
2016-12-28 15:52:16 +01:00
parent c9d99f101a
commit a5407e9222
4 changed files with 9 additions and 23 deletions

View File

@@ -22,11 +22,11 @@ var template = read('./template.html');
// read page fragments
var fragments = {};
[ 'analytics',
'index',
[ 'index',
'fork',
'terms',
'privacy',
'logo',
].forEach(function (name) {
fragments[name] = read('./fragments/' + name + '.html');
});
@@ -35,8 +35,8 @@ var fragments = {};
['index', 'privacy', 'terms'].forEach(function (page) {
var source = swap(template, {
fork: fragments.fork,
analytics: fragments.analytics,
main: fragments[page],
logo: fragments.logo,
});
write('../' + page + '.html', source);
});