1
0
mirror of https://github.com/osmarks/website synced 2024-11-01 01:36:15 +00:00
website/templates/layout.pug

39 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")
2020-07-01 19:29:42 +00:00
link(rel="shortcut icon", href="/assets/images/logo96inv.png", type="image/png")
// this may be problematic but otherwise it overescapes stuff
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
a(href="/")
2020-06-12 13:59:22 +00:00
img.logo(src="/assets/images/logo.svg", alt="")
2020-03-08 17:13:14 +00:00
+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
2020-06-12 13:59:22 +00:00
section(id="isso-thread")