summaryrefslogtreecommitdiff
path: root/site/page.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-12-04 03:32:14 +0000
committerdavidovski <david@davidovski.xyz>2023-12-04 03:32:14 +0000
commit6317c20aa212a21ae3301c7c8e936b1ea9451c96 (patch)
tree9075a1a72dc4c5071cc4a6bb0f13c5ad05b4ca1e /site/page.sh
parentc8294e0aebef0c13507ad815ce773fdef00efcb7 (diff)
change size of window for some pages
Diffstat (limited to 'site/page.sh')
-rwxr-xr-xsite/page.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/site/page.sh b/site/page.sh
index 69db1fb..d3bf1a7 100755
--- a/site/page.sh
+++ b/site/page.sh
@@ -1,5 +1,12 @@
#!/bin/sh
-# set a variable to avoid this template being repeated indefinitely
+
+# if this is called with -s then make it the small version of the page
+
+type="regular-window"
+[ "$1" = "-s" ] &&{
+ type="small-window"
+ shift
+}
cat << EOF
<!DOCTYPE html>
@@ -11,7 +18,7 @@ cat << EOF
<title>davidovski.xyz</title>
</head>
<body bgcolor="#191919" text="#f58f44" link="#b4d6d1">
- <div valign="middle" class="main" bgcolor="#191919" text="#f58f44">
+ <div valign="middle" class="main $type" bgcolor="#191919" text="#f58f44">
<div class="header">
<a href="https://davidovski.xyz/"<h1 class="title">davidovski.xyz</h1></a>
<hr>
@@ -32,12 +39,13 @@ cat << EOF
</div>
</div>
<hr>
-
+ <div class="content">
EOF
[ -z "$1" ] || /bin/sh $*
cat << EOF
+ </div>
</div>
</body>