1
0
mirror of https://github.com/osmarks/website synced 2024-11-12 21:59:54 +00:00
website/templates/layout.pug

40 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-03-08 17:13:14 +00:00
mixin nav-item(url, name)
a(href=url)= name
doctype html
html(lang="en")
head
title= `${title} @ ${name}`
script(src="/assets/js/page.js", defer=true)
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
if description
meta(name="description", content=description)
link(rel="manifest", href="/assets/manifest.webmanifest")
2022-03-09 20:59:26 +00:00
link(rel="shortcut icon", href="/assets/images/logo256.png", type="image/png")
style!= css
2020-03-08 17:13:14 +00:00
if comments !== "off"
2020-05-02 08:19:46 +00:00
script(src=`https://${domain}/isso/js/embed.min.js`, async=true, data-isso=`https://${domain}/isso/`)
2020-03-08 17:13:14 +00:00
body
nav
2022-03-09 20:59:26 +00:00
a.logocont(href="/")
img.logo(src="/assets/images/logo256.png", alt="osmarks.net logo")
.logotext osmarks
2020-03-08 17:13:14 +00:00
+nav-item("/", "Index")
2021-08-06 16:11:06 +00:00
+nav-item(`https://status.${domain}/`, "Status")
2020-03-08 17:13:14 +00:00
+nav-item(`https://i.${domain}/`, "Images")
block nav-items
.header
h1.page-title= title
if updated
h3= `Updated ${renderDate(updated)}`
if created
h3= `Created ${renderDate(created)}`
if description
em.description!= description
block content
if comments !== "off"
.isso
2021-08-06 16:11:06 +00:00
section(id="isso-thread")