summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-05-08 15:35:48 +0100
committerubq323 <ubq323@ubq323.website>2023-05-08 15:35:48 +0100
commit35409af1e0230323a6bc96de229ef2aa02a2a086 (patch)
tree6e4d37202b890933400b86a3ffd1861ee4d0da34
parent0a1d8b0c16f416f34b7f2e6fe0d430cbec9b66cc (diff)
background change
-rw-r--r--bg.pngbin100 -> 105 bytes
-rwxr-xr-xbuild.sh8
-rw-r--r--h.lua20
-rw-r--r--head.html2
4 files changed, 25 insertions, 5 deletions
diff --git a/bg.png b/bg.png
index d35576e..ac0b369 100644
--- a/bg.png
+++ b/bg.png
Binary files differ
diff --git a/build.sh b/build.sh
index 2590b09..d046c26 100755
--- a/build.sh
+++ b/build.sh
@@ -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
diff --git a/h.lua b/h.lua
index 60b9ce3..7eb4baf 100644
--- a/h.lua
+++ b/h.lua
@@ -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",
diff --git a/head.html b/head.html
index 9350c0f..aa4f00e 100644
--- a/head.html
+++ b/head.html
@@ -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;}