Dwelling/homepage/views/mindflow.pug

47 lines
1.7 KiB
Plaintext

extends base.pug
block head
link(href='/assets/css/mindflow.css' rel='stylesheet')
block nav
nav
a(href='/') Home
a(href='/stuff') Stuff
a(href='/about') About
a(href='/guestbook') Guestbook
h1 Mindflow
block content
p.center Here I post updates on websites and infrastructure, my very important opinions and thoughts. If you'd like to subscribe to this bullshittery then #[a(href="rss.xml") RSS feed] at your service. :)
p #[a(href='#diary') Go to Diary]
section
h2#updates Updates
if (updates)
each update in updates
article(id='update-'+mindflowDateToId(update.date, tz))
header
a(href='#update-'+mindflowDateToId(update.date, tz))
h3= update.title
each line in update.body.split('\n')
p!= line
footer
time(datetime=update.date)= date_(update.date, tz)
else
p.center No updates? There must be some... Looks like database is offline.
section
h2#diary Diary
if (diary)
each entry in diary
article(id='diary-'+mindflowDateToId(entry.date, tz))
header
a(href='#diary-'+mindflowDateToId(entry.date, tz))
h3= entry.title
each line in entry.body.split('\n')
p!= line
footer
time(datetime=entry.date)= date_(entry.date, tz)
else
p.center No records? Well, that's definitely something's wrong happened to the database. :(