From 08c8ca943844a6575bed517f6cfd7bf7574a47db Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 17 Nov 2022 00:58:34 +0000 Subject: rename index.lua --- index.lua | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ index2.lua | 51 --------------------------------------------------- 2 files changed, 51 insertions(+), 51 deletions(-) create mode 100644 index.lua delete mode 100644 index2.lua diff --git a/index.lua b/index.lua new file mode 100644 index 0000000..fea3fec --- /dev/null +++ b/index.lua @@ -0,0 +1,51 @@ +require"h" + +head ={ safereadf "head.html", tag("title","ubq323's website") } +top = header { + tag("img",{id="me",src="me.png"},""), + h1 "ubq323's website", + p [[rebecca, "ubq323" (she/her, 20) - eminently engromulent]], +} + +function l(text,path) return li(a(text,path or "/"..text)) end +mainsect = section { + p [[hello, i am rebecca, and this is my website. on it are some things:]]; + 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"; + }; + p [[(if a link is missing, it is because i haven't created that thing yet)]] +} + + + +contact = section { + h2 "contact"; + + p "i enjoy it when people contact me. if you are cool, please contact me."; + ul { + 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]], + }, +} +footer = safe [[ +
+ + + + + +]] + + +print(html{ + head, top, mainsect, contact, footer +}) diff --git a/index2.lua b/index2.lua deleted file mode 100644 index fea3fec..0000000 --- a/index2.lua +++ /dev/null @@ -1,51 +0,0 @@ -require"h" - -head ={ safereadf "head.html", tag("title","ubq323's website") } -top = header { - tag("img",{id="me",src="me.png"},""), - h1 "ubq323's website", - p [[rebecca, "ubq323" (she/her, 20) - eminently engromulent]], -} - -function l(text,path) return li(a(text,path or "/"..text)) end -mainsect = section { - p [[hello, i am rebecca, and this is my website. on it are some things:]]; - 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"; - }; - p [[(if a link is missing, it is because i haven't created that thing yet)]] -} - - - -contact = section { - h2 "contact"; - - p "i enjoy it when people contact me. if you are cool, please contact me."; - ul { - 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]], - }, -} -footer = safe [[ -
- - - - - -]] - - -print(html{ - head, top, mainsect, contact, footer -}) -- cgit v1.2.3