summaryrefslogtreecommitdiff
path: root/site/page.sh
blob: d3bf1a79c8712431cbd410cd0658c8bfa6a6cbf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh

# 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>
<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 $type" 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>
            <div class="content">
EOF

[ -z "$1" ] || /bin/sh $*

cat << EOF
            </div>
		</div>

	</body>
</html>
EOF