Add global footer
This commit is contained in:
parent
9b52848707
commit
704313b5ae
2 changed files with 20 additions and 10 deletions
|
@ -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
|
||||
{}
|
||||
|
|
|
@ -51,10 +51,6 @@ slots.banner aside class: { 'box' }
|
|||
]]
|
||||
* p i "Thank you."
|
||||
|
||||
slots.footer aside id: "contact"
|
||||
* p raw "Got feedback?<br>Tag me on fedi!"
|
||||
* a "@darkwiiplayer@tech.lgbt", href: 'https://tech.lgbt/@darkwiiplayer'
|
||||
|
||||
return (=>@)
|
||||
* article
|
||||
* slots.title
|
||||
|
|
Loading…
Reference in a new issue