1
0

Updated mindflow.pug to recent changes of Post struct.

This commit is contained in:
Alexander Andreev 2023-05-10 03:20:11 +04:00
parent 406dd3b4f0
commit fced4f31ad
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -26,10 +26,10 @@ block content
section
if (len(posts) > 0)
each post in posts
article(id=`${strings.ToLower(post.Category)}-${post.Date.UTC().Format("20060102-150405")}`)
article(id=`${post.PostID()}`)
header
a(href=`#${strings.ToLower(post.Category)}-${post.Date.UTC().Format("20060102-150405")}`)
h3= post.Category + ": " + post.Title
a(href=`#${post.PostID()}`)
h3= post.Category.Name + ": " + post.Title
each line in strings.Split(post.Body, "\n")
p!= line
footer