summary refs log tree commit diff
path: root/src/index.sh
blob: 03e300f6a8f036fc2bcdc4ae095157d7c449c281 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh
# vim: set syntax=html:
set -e
cat <<EOF
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
	<link href="https://tilde.town/~dzwdz/blog/feed.atom" type="application/atom+xml" rel="alternate"/>
	<title>dzwdz</title>
	<link rel="icon" href="https://tilde.town/~dzwdz/favicon.gif" />
	<style>
body {
	max-width: 40ch;
	font-family: sans-serif;
	line-height: 1.3;
	margin: 2em auto;
	padding: 0 1ch;
}

.sidenote {
	border: 1px solid currentColor;
	padding: 1ch;
	margin: 3em 1ch;
}

.sidenote > * {
	margin: 0;
}

h2, h3 {
	margin-bottom: 0;
	margin-top: 1.5em;
}

span {
	opacity: .5;
	width: 10ch;
	display: inline-block;
	text-align: right;
}
	</style>
</head>
<body>
<div><span>irc</span>
dzwdz on {<a href="https://libera.chat">libera</a>,<a href="https://tilde.chat">tilde</a>}.chat</div>
<div><span>email</span>
dzwdz at <a href="https://disroot.org">disroot</a></div>
<div><span>feeds</span>
<a href="https://tilde.town/~dzwdz/blog/feed.atom">atom</a>,
<a href="https://tilde.town/~dzwdz/blog/feed.ass">ass</a>
</div>
<div><span>pronounce</span>
dźwiedź
,
дведь
,
/d͡ʑviɛd͡ʑ/
,
<a href="https://tilde.town/~dzwdz/dzwdz1.ogg">.ogg</a>
</div>
<br>
EOF

awk -F"\t" '/^2/ {
	print "<div><span>", $1, "</span>",
	"<a href=\"", $2, "\">", $3, "</a></div>";
}' $1