2023-02-05 04:43:34 +04:00
extends base.pug
block meta_description
2023-05-19 21:40:16 +04:00
meta(name='description' content="Updates on my infrastructure, my very important opinions and thoughts.")
2023-02-05 04:43:34 +04:00
block append head
link(href='/assets/css/mindflow.css' rel='stylesheet')
script(src='/assets/js/mindflow.js' defer='')
2023-06-03 23:31:07 +04:00
link(rel='canonical' href='/mindflow')
2023-02-05 04:43:34 +04:00
block nav
a(href='/') Home
a(href='/stuff') Stuff
a(href='/about') About
a(href='/guestbook') Guestbook
h1 Mindflow
block content
2023-05-22 21:32:09 +04:00
:go:func Mindflow(title string, posts []mindflow.Post, categories []mindflow.Category, r *http.Request)
2023-08-13 01:20:45 +04:00
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. :)
2023-02-05 04:43:34 +04:00
section#filter.hidden
p.center
button(name='all') All
2023-05-22 21:32:09 +04:00
each category in categories
button(name=strings.ToLower(category.Name)) #{category.Name}
2023-02-05 04:43:34 +04:00
section
if (len(posts) > 0)
each post in posts
2023-05-10 03:20:11 +04:00
article(id=`${post.PostID()}`)
2023-02-05 04:43:34 +04:00
header
2023-05-10 03:20:11 +04:00
a(href=`#${post.PostID()}`)
h3= post.Category.Name + ": " + post.Title
2023-02-05 04:43:34 +04:00
each line in strings.Split(post.Body, "\n")
2023-09-25 16:57:20 +04:00
if (len(line) > 0 && line[0] == '>')
2023-09-25 03:21:49 +04:00
p.quote!= line
else
p!= line
2023-02-05 04:43:34 +04:00
footer
2023-09-25 16:55:42 +04:00
if (post.URL != "")
a(href=post.PostURL(r.Host, false)) #{post.PostURL(r.Host, false)}
else
span
2023-02-05 04:43:34 +04:00
time(datetime=util.ToClientTimezone(post.Date, r))= util.ToClientTimezone(post.Date, r).Format(time.RFC1123)
else
p.center Nothing? There must be some... Looks like database went down.