summaryrefslogtreecommitdiff
path: root/page.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-06-13 00:12:02 +0100
committerdavidovski <david@davidovski.xyz>2023-06-13 00:12:02 +0100
commit045ab662bb15d9a13d4d58ef609f643b9ae0889d (patch)
treeecf6a75bb9c9aa530bf5e7cca909c9b8894fd690 /page.sh
parent7acbb084388e3b7d13f37b65e0b5cf2756d6cf26 (diff)
use shblg to generate a static site from this repo
Diffstat (limited to 'page.sh')
-rwxr-xr-xpage.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/page.sh b/page.sh
new file mode 100755
index 0000000..69db1fb
--- /dev/null
+++ b/page.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+# set a variable to avoid this template being repeated indefinitely
+
+cat << EOF
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+ <link rel="stylesheet" href="/style.css">
+ <title>davidovski.xyz</title>
+ </head>
+ <body bgcolor="#191919" text="#f58f44" link="#b4d6d1">
+ <div valign="middle" class="main" bgcolor="#191919" text="#f58f44">
+ <div class="header">
+ <a href="https://davidovski.xyz/"<h1 class="title">davidovski.xyz</h1></a>
+ <hr>
+ <div class="links">
+ <a href="https://davidovski.xyz/git">git</a>
+ ||
+ <a color="#cc6666" style="color: var(--red);" href="https://davidovski.xyz/m">m</a>
+ |
+ <a color="#cc6666" style="color: var(--red);" href="https://davidovski.xyz/f">f</a>
+ |
+ <a color="#cc6666" style="color: var(--red);" href="https://davidovski.xyz/s">s</a>
+ ||
+ <a color="#b5bd68" style="color: var(--green)" href="http://chat.davidovski.xyz/">chat</a>
+ |
+ <a color="#b5bd68" style="color: var(--green)" href="mailto:david@davidovski.xyz">mail</a>
+ |
+ <a color="#b5bd68" style="color: var(--green)" href="/rss.xml">rss</a>
+ </div>
+ </div>
+ <hr>
+
+EOF
+
+[ -z "$1" ] || /bin/sh $*
+
+cat << EOF
+ </div>
+
+ </body>
+</html>
+EOF