ad_pubfiles/ori-templates/base_html.ori

19 lines
763 B
Plaintext

//base page template
(page) => Tree.indent`
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>${page.title}</title>
<link href="/ad_pubfiles_pub.d/css/style.css" rel="stylesheet">
<link rel="icon" href="/ad_pubfiles_pub.d/images/favicon.svg">
<link rel="alternate" title="Changelog Feed — JSON" type="application/feed+json" href="${config.ori(page.all)/siteurl}/changelog.json">
<link rel="alternate" title="Changelog Feed — RSS" type="application/rss+xml" href="${config.ori(page.all)/siteurl}/changelog.rss">
</head>
<body>
${page.all?'<p>private mode</p>':''}
${page.indexPage ? '' : '<p><a href="/">↖index</a></p>'}
${page._body}
</html>
`