summaryrefslogtreecommitdiff
path: root/site/index.html
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-21 11:05:15 +0200
committerdavidovski <david@davidovski.xyz>2023-08-09 02:42:03 +0100
commitf298c481fd08b58a26e17b1c36ced8128440dbf7 (patch)
tree322bb1788fdf4c4f6a5c43fc33200c5cb7647810 /site/index.html
parent9ac6c99826fc6a4deacd1fb2ead47920cf66cdcd (diff)
move non-executables to site subdir
Diffstat (limited to 'site/index.html')
-rwxr-xr-xsite/index.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/site/index.html b/site/index.html
new file mode 100755
index 0000000..080a484
--- /dev/null
+++ b/site/index.html
@@ -0,0 +1,43 @@
+#!./page.sh
+
+cat << EOF
+<div class="grid">
+ <div class="about">
+
+ <p>Hi, I'm david and this is my website.</p>
+
+ <p>if you want to contact me, you can message me on matrix <code>@ix:davidovski.xyz</code>.</p>
+ </div>
+
+ <div class="image">
+ <img src="/images/remotecontrol.gif">
+ </div>
+</div>
+
+EOF
+
+cat << EOF
+ <div>
+ <h2>blog posts</h2>
+
+ <ul>
+EOF
+# list all the files in the directory
+for file in entries/*.html; do
+ title="$(grep '^# ' $file)"
+ title=${title#\# }
+
+ printf "
+<li class=\"entry\">
+<a href=\"%s\">
+ <div class=\"small\">%s</div>
+ <span>%s</span>
+</a>
+</li>
+" "${file%.*}.html" "$(stat -c %z "$file")" "$title"
+ done
+
+cat << EOF
+ </ul>
+ </div>
+EOF