davidovski/site/page.sh

54 lines
1.4 KiB
Bash
Raw Normal View History

#!/bin/sh
2023-12-04 03:32:14 +00:00
# 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
2021-08-26 03:15:22 +00:00
<!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>
2022-05-02 12:01:33 +00:00
<body bgcolor="#191919" text="#f58f44" link="#b4d6d1">
2023-12-04 03:32:14 +00:00
<div valign="middle" class="main $type" bgcolor="#191919" text="#f58f44">
2021-08-26 03:15:22 +00:00
<div class="header">
<a href="https://davidovski.xyz/"<h1 class="title">davidovski.xyz</h1></a>
<hr>
<div class="links">
2021-10-02 14:37:51 +00:00
<a href="https://davidovski.xyz/git">git</a>
2021-08-26 03:15:22 +00:00
||
2022-05-02 12:01:33 +00:00
<a color="#cc6666" style="color: var(--red);" href="https://davidovski.xyz/m">m</a>
2021-08-26 03:15:22 +00:00
|
2022-05-02 12:01:33 +00:00
<a color="#cc6666" style="color: var(--red);" href="https://davidovski.xyz/f">f</a>
2021-08-26 03:15:22 +00:00
|
2022-05-02 12:01:33 +00:00
<a color="#cc6666" style="color: var(--red);" href="https://davidovski.xyz/s">s</a>
2021-08-26 03:15:22 +00:00
||
2022-05-02 12:01:33 +00:00
<a color="#b5bd68" style="color: var(--green)" href="http://chat.davidovski.xyz/">chat</a>
2021-08-26 03:15:22 +00:00
|
2022-05-02 12:01:33 +00:00
<a color="#b5bd68" style="color: var(--green)" href="mailto:david@davidovski.xyz">mail</a>
2021-08-26 03:15:22 +00:00
|
2022-05-02 12:01:33 +00:00
<a color="#b5bd68" style="color: var(--green)" href="/rss.xml">rss</a>
2021-08-26 03:15:22 +00:00
</div>
</div>
2022-05-23 21:34:48 +00:00
<hr>
2023-12-04 03:32:14 +00:00
<div class="content">
EOF
[ -z "$1" ] || /bin/sh $*
cat << EOF
2023-12-04 03:32:14 +00:00
</div>
2021-08-26 03:15:22 +00:00
</div>
</body>
</html>
EOF