From fced4f31adae4ea97eecfba975e534ce216edc8d Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 10 May 2023 03:20:11 +0400 Subject: [PATCH] Updated mindflow.pug to recent changes of Post struct. --- web/templates/mindflow.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/templates/mindflow.pug b/web/templates/mindflow.pug index 224099d..0ed72b6 100755 --- a/web/templates/mindflow.pug +++ b/web/templates/mindflow.pug @@ -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