wunphile
Version:
Simple, imperative JavaScript-based static site generator
19 lines (18 loc) • 614 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
${['site', ...(typeof styles === 'undefined' ? [] : styles)].map(name => `
<link rel="stylesheet" href="/css/${name}.css">
`).join('')}
<title>${ title } - ${config.title}</title>
</head>
<body>
${ content }
${(typeof scripts === 'undefined' ? [] : scripts).map(name => `
<script src="/js/${name}.js"></script>
`).join('')}
<i>Generated on ${new Date()}</i>
</body>
</html>