Now there is single section with all posts. Type of post added as a prefix "CategoryName:" to the title of post.

This commit is contained in:
Alexander Andreev 2022-01-21 20:58:13 +04:00
parent 48bdab2589
commit a1902abbd4
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -12,35 +12,18 @@ block nav
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]
p.center Here I post updates on websites and infrastructure, my very important opinions and thoughts no one asked for. If you'd like to subscribe to this bullshittery then #[a(href="rss.xml") RSS feed] at your service. :)
section
h2#updates Updates
if (updates)
each update in updates
article(id='update-'+mindflowDateToId(update.date, tz))
if (posts)
each post in posts
article(id=`${post.category.toLowerCase()}-${date_id(post.date, tz)}`)
header
a(href='#update-'+mindflowDateToId(update.date, tz))
h3= update.title
each line in update.body.split('\n')
a(href=`#${post.category.toLowerCase()}-${date_id(post.date, tz)}`)
h3= `${post.category}: ${post.title}`
each line in post.body.split('\n')
p!= line
footer
time(datetime=update.date)= date_(update.date, tz)
time(datetime=post.date)= date_(post.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. :(
p.center Nothing? There must be some... Looks like database went down.