mirror of
https://github.com/osmarks/website
synced 2025-09-06 12:27:56 +00:00
initial commit
This commit is contained in:
4
templates/blogPost.pug
Normal file
4
templates/blogPost.pug
Normal file
@@ -0,0 +1,4 @@
|
||||
extends layout.pug
|
||||
|
||||
block content
|
||||
main.blog-post!= content
|
4
templates/experiment.pug
Normal file
4
templates/experiment.pug
Normal file
@@ -0,0 +1,4 @@
|
||||
extends layout.pug
|
||||
|
||||
block content
|
||||
main!= content
|
25
templates/index.pug
Normal file
25
templates/index.pug
Normal file
@@ -0,0 +1,25 @@
|
||||
extends layout.pug
|
||||
|
||||
block content
|
||||
main
|
||||
h2 Blog
|
||||
p.
|
||||
Stuff I say, conveniently accessible on the internet.
|
||||
ul.blog
|
||||
each post in posts
|
||||
li
|
||||
a.title(href=`/${post.slug}/`)= post.title
|
||||
span= ` `
|
||||
span.description!= post.description
|
||||
|
||||
h2 Experiments
|
||||
p.
|
||||
Various random somewhat useless web projects I have put together over many years. Made with at least four different JS frameworks.
|
||||
ul.experiments
|
||||
each experiment in experiments
|
||||
li
|
||||
a.title(href=`/${experiment.slug}/`)= experiment.title
|
||||
span= ` `
|
||||
span.description!= experiment.description
|
||||
|
||||
p Get updates to the blog (not experiments) in your favourite RSS reader using the <a href="/rss.xml">RSS feed</a>.
|
38
templates/layout.pug
Normal file
38
templates/layout.pug
Normal file
@@ -0,0 +1,38 @@
|
||||
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/icon.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")
|
||||
+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")
|
16
templates/rss.pug
Normal file
16
templates/rss.pug
Normal file
@@ -0,0 +1,16 @@
|
||||
doctype xml
|
||||
rss(version='2.0')
|
||||
channel
|
||||
title= name
|
||||
description= siteDescription
|
||||
link= `https://${domain}/`
|
||||
lastBuildDate= new Date().toUTCString()
|
||||
pubDate= lastUpdate.toUTCString()
|
||||
|
||||
each item in items
|
||||
item
|
||||
title= item.title
|
||||
description= item.description
|
||||
link= `https://${domain}/${item.slug}`
|
||||
if item.updated
|
||||
pubDate= item.updated.toDate().toUTCString()
|
Reference in New Issue
Block a user