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:
parent
48bdab2589
commit
a1902abbd4
@ -12,35 +12,18 @@ block nav
|
|||||||
h1 Mindflow
|
h1 Mindflow
|
||||||
|
|
||||||
block content
|
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.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. :)
|
||||||
|
|
||||||
p #[a(href='#diary') Go to Diary]
|
|
||||||
|
|
||||||
section
|
section
|
||||||
h2#updates Updates
|
if (posts)
|
||||||
if (updates)
|
each post in posts
|
||||||
each update in updates
|
article(id=`${post.category.toLowerCase()}-${date_id(post.date, tz)}`)
|
||||||
article(id='update-'+mindflowDateToId(update.date, tz))
|
|
||||||
header
|
header
|
||||||
a(href='#update-'+mindflowDateToId(update.date, tz))
|
a(href=`#${post.category.toLowerCase()}-${date_id(post.date, tz)}`)
|
||||||
h3= update.title
|
h3= `${post.category}: ${post.title}`
|
||||||
each line in update.body.split('\n')
|
each line in post.body.split('\n')
|
||||||
p!= line
|
p!= line
|
||||||
footer
|
footer
|
||||||
time(datetime=update.date)= date_(update.date, tz)
|
time(datetime=post.date)= date_(post.date, tz)
|
||||||
else
|
else
|
||||||
p.center No updates? There must be some... Looks like database is offline.
|
p.center Nothing? There must be some... Looks like database went down.
|
||||||
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. :(
|
|
||||||
|
Loading…
Reference in New Issue
Block a user