Add webring thingy to each page
[website] / lib.sh
1 function TitleA() {
2 cat <<EOF >/dev/stdout
3 <!DOCTYPE html>
4 <html><head>
5 <title>$@ // Box in Space</title>
6 <meta charset="UTF-8">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 <link type="image/png" rel="shortcut icon" href="/img/favicon.png">
9 <link type="text/css" rel="stylesheet" href="/global.css">
10 <script type="text/javascript" src="/webring.js" id="mira"></script>
11 EOF
12 }
13
14 function TitleB() {
15 cat <<EOF >/dev/stdout
16 </head><body>
17 <div id="wrap">
18 <a href="/"><img id="banner" alt="MIRA" src="/img/banner.png"></a>
19 EOF
20 }
21
22 function Title() {
23 TitleA "$@"
24 TitleB
25 }
26
27 function Footer() {
28 cat <<EOF >/dev/stdout
29 <footer>
30 <span>This site is part of the Lavender Software webring<br>
31 <a id="webring-previous"></a><a id="webring-next"></a></span><br>
32 Site content <a href="/LICENCE">CC-BY-NC-SA-4.0</a> Mira Ayre
33 2021-$(date +%Y)
34 (<a href="/gitweb.cgi?p=website;a=summary">view source</a>)<br>
35 Logo <a href="/LICENCE">CC-BY-NC-SA-4.0</a> Mira Ayre &amp; Erin Nova 2021
36 </footer></div></body></html>
37 EOF
38 }
39
40 function Head() {
41 cat <<EOF >/dev/stdout
42 <h1 id="head">$@</h1>
43 EOF
44 }