39 lines
1.5 KiB
Plaintext
Executable File
39 lines
1.5 KiB
Plaintext
Executable File
extends base.pug
|
|
|
|
block meta_description
|
|
meta(name='description' content="Updates on my infrastructure, my very important opinions and thoughts.")
|
|
|
|
block append head
|
|
link(href='/assets/css/mindflow.css' rel='stylesheet')
|
|
script(src='/assets/js/mindflow.js' defer='')
|
|
|
|
block nav
|
|
a(href='/') Home
|
|
a(href='/stuff') Stuff
|
|
a(href='/about') About
|
|
a(href='/guestbook') Guestbook
|
|
h1 Mindflow
|
|
|
|
block content
|
|
:go:func Mindflow(title string, posts []mindflow.Post, r *http.Request)
|
|
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#filter.hidden
|
|
p.center
|
|
button(name='all') All
|
|
button(name='update') Updates
|
|
button(name='diary') Diary
|
|
section
|
|
if (len(posts) > 0)
|
|
each post in posts
|
|
article(id=`${post.PostID()}`)
|
|
header
|
|
a(href=`#${post.PostID()}`)
|
|
h3= post.Category.Name + ": " + post.Title
|
|
each line in strings.Split(post.Body, "\n")
|
|
p!= line
|
|
footer
|
|
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.
|