1
0
mirror of https://github.com/osmarks/website synced 2024-11-09 20:49:55 +00:00
website/templates/layout.pug

52 lines
2.0 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")
2023-03-18 15:33:06 +00:00
meta(content=`https://${domain}/assets/images/logo256.png`, property="og:image")
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
2023-03-18 22:31:32 +00:00
+nav-item(`https://mse.${domain}/`, "Meme Search")
2020-03-08 17:13:14 +00:00
+nav-item(`https://i.${domain}/`, "Images")
2023-03-18 15:29:21 +00:00
+nav-item("https://github.com/osmarks/website", "Contribute")
2023-03-18 22:31:32 +00:00
+nav-item(`https://b.${domain}`, "Microblog")
2023-08-31 12:00:53 +00:00
+nav-item(`https://status.${domain}`, "Status")
+nav-item(`https://r.${domain}/login`, "Login")
2020-03-08 17:13:14 +00:00
block nav-items
.header
h1.page-title= title
2023-08-31 12:00:53 +00:00
block under-title
h3.deemph
if updated
span= `Updated ${renderDate(updated)}`
if created || wordCount
span= " / "
if created
span= `Created ${renderDate(created)}`
if wordCount
span= " / "
if wordCount
span= `${metricPrefix(wordCount, "")} words`
2020-03-08 17:13:14 +00:00
if description
em.description!= description
block content
if comments !== "off"
.isso
2021-08-06 16:11:06 +00:00
section(id="isso-thread")