diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-29 12:38:47 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-29 12:38:47 +0100 |
commit | 92bad116a5fa6ef28dc0c86381a5486e3654bd99 (patch) | |
tree | 827414757ffe057f2cc9abe16175ba66d71f81a4 | |
parent | 351a57a5464f5f150317b25a76d64348d953a760 (diff) |
-rwxr-xr-x | build.sh | 6 | ||||
-rw-r--r-- | garden.lua | 34 | ||||
-rw-r--r-- | h.lua | 2 | ||||
-rw-r--r-- | index.lua | 7 |
4 files changed, 43 insertions, 6 deletions
@@ -21,6 +21,10 @@ bp() { } # build page with extensions automatically bpn() { bp ${1}.lua ${1}.html; } + +# build page into subdir (xyz.lua becomes /xyz/) +bpnd() { md "$1"; bp ${1}.lua ${1}/index.html; } + # copy file (or dir) cf() { echo "${src}/$1 -> ${dst}/$1" @@ -38,6 +42,8 @@ cf me.png md questions bpn questions/questions +bpnd garden + # md blog # bp blogindex.lua blog/index.html diff --git a/garden.lua b/garden.lua new file mode 100644 index 0000000..4d0212f --- /dev/null +++ b/garden.lua @@ -0,0 +1,34 @@ +require'h' + +local head = mkhead'garden' +local top = mksmalltopbox('garden') +local bread = bcrumb{ + {'< home','/'}, + {'garden'} +} + +local sect = section { + h2'garden', + p[[ +garden is a multiplayer paint program. the single canvas is infinite and persistent.]], + img({src="https://ubq323.website/files/uiQWlN0R.png"},''), + p[[you can:]], + ul{ + li{ a("download it","/files/garden"), [[ (linux x86 binary, needs sdl2) ]] }, + li{ [[build ]], a("the source code","//g.gh0.pw/garden"), " yourself." }, + }, +} + +local ch = section { + h2'changelog', + dl{ + dt[[v1.0.0 (2024-04-29):]], + dd[[initial release]], + }, +} + + + +print(html{ + head, top, bread, sect, ch +}) @@ -167,6 +167,6 @@ end -- the box at the top with the cool picture of me in, etc -- presumably the same on all pages site_top = mktopbox('/me.png',"ubq323's website", - p [[rebecca, "ubq323" (she/her, 20) - eminently engromulent]] + p [[rebecca, "ubq323" (she/her, 20s) - effervescently engromulent]] ) @@ -8,15 +8,12 @@ mainsect = section { ul { l(",flappy fly bird man?","/ffbm"); l "morrison"; - li "blog"; - li "microblog"; l("apioforum","//a.gh0.pw"); l("ubq323 git","//g.gh0.pw"); l("some music","//ubq323.bandcamp.com"); - li "projects"; l("questions","/questions/questions.html"); + l "garden"; }; - p [[(if a link is missing, it is because i haven't created that thing yet)]] } @@ -29,7 +26,7 @@ contact = section { li [[email: ubq323@ubq323.website]], li [[xmpp: ubq323@ubq323.website]], li { [[irc: ubq323 on ]], a("apionet","irc:ubq323.website/#a") }, - li [[discord (if you must): ubq323#9691]], + li [[discord (if you must): ubq323]], li { 'the ', a('questions page','/questions/questions.html') }, }, } |