1
0
mirror of https://github.com/osmarks/website synced 2024-11-08 20:29:55 +00:00
website/templates/layout.pug
2021-08-06 17:11:06 +01:00

39 lines
1.3 KiB
Plaintext

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")
link(rel="shortcut icon", href="/assets/images/logo96inv.png", type="image/png")
style!= css
if comments !== "off"
script(src=`https://${domain}/isso/js/embed.min.js`, async=true, data-isso=`https://${domain}/isso/`)
body
nav
a(href="/")
img.logo(src="/assets/images/logo.svg", alt="")
+nav-item("/", "Index")
+nav-item(`https://status.${domain}/`, "Status")
+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
section(id="isso-thread")