diff options
author | ubq323 <ubq323@ubq323.website> | 2023-05-08 15:35:48 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-05-08 15:35:48 +0100 |
commit | 35409af1e0230323a6bc96de229ef2aa02a2a086 (patch) | |
tree | 6e4d37202b890933400b86a3ffd1861ee4d0da34 | |
parent | 0a1d8b0c16f416f34b7f2e6fe0d430cbec9b66cc (diff) |
background change
-rw-r--r-- | bg.png | bin | 100 -> 105 bytes | |||
-rwxr-xr-x | build.sh | 8 | ||||
-rw-r--r-- | h.lua | 20 | ||||
-rw-r--r-- | head.html | 2 |
4 files changed, 25 insertions, 5 deletions
Binary files differ @@ -36,10 +36,10 @@ cf bg.png cf me.png -# md blog/ -# bpn blog/test-post -# bpn blog/post-alpha -# bpn blog/post-beta +# md blog # bp blogindex.lua blog/index.html +# for p in blog/*; do +# bpn ${p%.lua} +# done cf 4d.html @@ -135,6 +135,26 @@ function bcrumb(items) ) end + +function blogpost(meta,content) + local head = mkhead(meta.title.." - rebecca blog") + + local top = header { + img({id='me',src='/me.png'},''), + h1 'rebecca blog', + p [[ there is some text here ]], + } + + local breadcrumbs = bcrumb { + {'⌂ home','/'}, + {'rebecca blog','/blog'}, + {meta.title}, + } + + return html{head,top,breadcrumbs,content} +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", @@ -6,7 +6,7 @@ body {font-family: sans-serif;font-size:larger;max-width:60ch;margin:auto} body {background-image: url("/bg.png");image-rendering:pixelated} h1 {color:#e79e00; text-shadow: 0 0 1px #000, 0 0 1px #000, 0 0 1px #000, 0 0 1px #000, 0 0 1px #000, 0 0 1px #000;} -section {margin:20px 0;padding:20px;border-radius:20px;border:1px solid rebeccapurple;background-color:white} +section {margin:20px 0;padding:20px;border-radius:20px;border:1.7px solid black;background-color:white} header {border: 2px solid black;max-width:100%;margin:1em;background-color:white} header {display:grid;grid-template-columns:1fr 3fr;} |