Test new home page

This commit is contained in:
yflory
2017-01-16 18:28:37 +01:00
parent a9063e0459
commit 6652e9d6d9
22 changed files with 644 additions and 187 deletions

View File

@@ -24,9 +24,11 @@ var template = read('./template.html');
var fragments = {};
[ 'index',
'fork',
'topbar',
'terms',
'privacy',
'about',
'contact',
'logo',
'noscript',
].forEach(function (name) {
@@ -34,8 +36,9 @@ var fragments = {};
});
// build static pages
['index', 'privacy', 'terms', 'about',].forEach(function (page) {
['index', 'privacy', 'terms', 'about', 'contact',].forEach(function (page) {
var source = swap(template, {
topbar: fragments.topbar,
fork: fragments.fork,
main: fragments[page],
logo: fragments.logo,