~sircmpwn/himitsustore.org

himitsustore.org/postprocess.awk -rw-r--r-- 673 bytes
029e4a73Drew DeVault index.html: fix himitsu-keyring link 5 months ago
                                                                                
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
/<style>/ {
	print "  <link rel=\"stylesheet\" href=\"../main.css\" />"
	print $0
	next
}
/<body>/ {
	print "<body>"
	print "<h1>Himitsu</h1>"
	print "<h2>A secret storage manager</h2>"
	print "<nav>"
	print "  <ul>"
	print "    <li>"
	print "      <a href='/'>Himitsu</a>"
	print "    </li>"
	print "    <li>"
	print "      <a href='/docs'>Documentation</a>"
	print "    </li>"
	print "    <li>"
	print "      <a href='https://web.libera.chat/gamja/?channels=%23himitsu'>IRC channel</a>"
	print "    </li>"
	print "    <li>"
	print "      <a href='https://sr.ht/~sircmpwn/himitsu'>Source code</a>"
	print "    </li>"
	print "  </ul>"
	print "</nav>"
	next
}
{
	print $0
}