Source for dblsaiko.net and knifepoint.net
divert(-1)

define(`EXTRA_HEAD', `')
define(`CONTENT_CLASS', `')

define(`BEGIN_DOCUMENT', `

divert(0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PAGE_TITLE — SITE_TITLE</title>
<link rel="preload" as="image" href="extlink.png">
<link rel="stylesheet" href="main.css">
EXTRA_HEAD
</head>
<body>
HEADER
<div id="content"ifelse(CONTENT_CLASS, `', `', ` class="CONTENT_CLASS"')>

')

define(`END_DOCUMENT', `
</div>
<hr>
<span class="pagesrc">EXTLINK(`site source',
`https://nest.pijul.com/dblsaiko/web')</span>
</body>
</html>
divert(-1)

')

define(`MENUENTRY', `<li`'ifelse(CURPAGE, `$1', ` class="current"',)><a href="ifelse($1, index, ., $1.html)">PAGE_TITLE_$1</a></li>')
define(`_HEADER', `ifelse(`$#', `0', , `$#', `1', `MENUENTRY($1)', `MENUENTRY($1)_HEADER(shift($@))')')
define(`HEADER', `

SITE_BANNER
<ul class="navbar">_HEADER(PAGES)</ul>

')

define(`SITE_BANNER', `<h1 class="banner">SITE_TITLE</h1>')
define(`PAGE_TITLE', `PAGE_TITLE_'CURPAGE)

define(`EXTLINK', `<a class="extlink" href="$2" target="_blank">$1</a>')