Dwelling/homepage/views/mindflow.pug

45 lines
1.6 KiB
Plaintext
Raw Normal View History

2021-02-10 01:01:50 +04:00
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. :)
section
h2 Updates
if (updates)
each update in updates
article(id='update-'+mindflowDateToId(update.date, tz))
2021-02-10 01:01:50 +04:00
header
a(href='#update-'+mindflowDateToId(update.date, tz))
2021-02-10 01:01:50 +04:00
h3= update.title
each line in update.body.split('\n')
p!= line
footer
time(datetime=update.date)= date_(update.date, tz)
2021-02-10 01:01:50 +04:00
else
p.center No updates? There must be some... Looks like database isn't connected.
section
h2 Diary
if (diary)
each entry in diary
article(id='diary-'+mindflowDateToId(entry.date, tz))
2021-02-10 01:01:50 +04:00
header
a(href='#diary-'+mindflowDateToId(entry.date, tz))
2021-02-10 01:01:50 +04:00
h3= entry.title
each line in entry.body.split('\n')
p!= line
footer
time(datetime=entry.date)= date_(entry.date, tz)
2021-02-10 01:01:50 +04:00
else
p.center No records? Well, that's definitely something's wrong happened to the database. :(