From 704313b5ae9b1a50df6b5b715148af298482b4bd Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 11 Sep 2023 12:13:13 +0200 Subject: [PATCH] Add global footer --- templates/main.html.skooma.yue | 26 ++++++++++++++++++++------ templates/post.html.skooma.yue | 4 ---- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/templates/main.html.skooma.yue b/templates/main.html.skooma.yue index d0a8f9e..3f74dbc 100644 --- a/templates/main.html.skooma.yue +++ b/templates/main.html.skooma.yue @@ -15,6 +15,23 @@ styles = [[ slots = slotty! +slots.footer aside id: "contact" + * h2 "Social" + * p + * "Got feedback? — Tag me on fedi!" + * br + * a "@darkwiiplayer@tech.lgbt", href: 'https://tech.lgbt/@darkwiiplayer', rel: 'me' + +slots.footer aside id: "git" + * h2 "Git" + * ul + * li a "Github", href: "https://github.com/darkwiiplayer" + * li a "Gitea", href: "https://git.but.gay/darkwiiplayer" + +slots.footer aside id: "platforms" + * h2 "Federated cloud" + * p "darkwiiplayer@cloud.but.gay" + css = => link rel: 'stylesheet', href: @ @@ -40,9 +57,6 @@ html * main * content slots, data * -> - if #slots.footer > 0 - footer class: "box" - * gridBox columns: math.min(#slots.footer, 3), class: 'content-padding' - * slots.footer - else - {} + footer class: "box" + * gridBox columns: math.min(#slots.footer, 3), class: 'content-padding' + * slots.footer diff --git a/templates/post.html.skooma.yue b/templates/post.html.skooma.yue index 6d6a48c..4d762d6 100644 --- a/templates/post.html.skooma.yue +++ b/templates/post.html.skooma.yue @@ -51,10 +51,6 @@ slots.banner aside class: { 'box' } ]] * p i "Thank you." -slots.footer aside id: "contact" - * p raw "Got feedback?
Tag me on fedi!" - * a "@darkwiiplayer@tech.lgbt", href: 'https://tech.lgbt/@darkwiiplayer' - return (=>@) * article * slots.title