From 342e570f2f25c92410b4cb65362a8809b4b40810 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 28 Aug 2023 10:52:19 +0200 Subject: [PATCH] Add feedback banner and update rockspec --- blog-dev-1.rockspec | 12 ++++++------ templates/post.html.skooma.yue | 13 ++++++++++++- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/blog-dev-1.rockspec b/blog-dev-1.rockspec index 26b613d..9a45936 100644 --- a/blog-dev-1.rockspec +++ b/blog-dev-1.rockspec @@ -9,15 +9,15 @@ description = { } dependencies = { "arrr ~> 2.2", - "glass ~> 1.3.0", + "glass ~> 1.3", "cmark ~> 0.29", - "fun ~> 0.1.3", + "fun ~> 0.1", "lua-cjson ~> 2.1", "restia", - "scaffold ~> 1.1.0", - "shapeshift ~> 1.1.0", - "skooma ~> 0.3", - "streamcsv ~> 1.1.0", + "scaffold ~> 1.1", + "shapeshift ~> 1.1", + "skooma", + "streamcsv ~> 1.1", } build = { type = "builtin", diff --git a/templates/post.html.skooma.yue b/templates/post.html.skooma.yue index ab66e14..584d16f 100644 --- a/templates/post.html.skooma.yue +++ b/templates/post.html.skooma.yue @@ -37,7 +37,18 @@ if src = post.head.cover_image else slots.title h1(post.head.title, style: "view-transition-name: #{post.head.slug}") +slots.banner aside class: { 'box' } + * b "Hey there!" + * p raw [[ + This blog doesn't use any tracking. When you open this page, I don't see + a number going up anywhere, so if you like this post, please consider + letting me know on the fediverse! + This is also the best way of giving any other feedback on my blog posts. + ]] + * p i "Thank you." + return (=>@) + * slots.banner * article * slots.title * nav { class: "breadcrumbs" } @@ -45,4 +56,4 @@ return (=>@) * li a "Blog", href: url "/" * [ breadcrumb post.head.uri\sub(1, number-1) for number in positions(post.head.uri, "/") ] * li post.head.title, class: 'active' - * post.body + * raw post.body