06ac933e455240f63fe355d66cd1b22de6045ce6
[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 EOF
11 }
12
13 function TitleB() {
14 cat <<EOF >/dev/stdout
15 </head><body>
16 <div id="wrap">
17 <a href="/"><img id="banner" alt="MIRA" src="/img/banner.png"></a>
18 EOF
19 }
20
21 function Title() {
22 TitleA "$@"
23 TitleB
24 }
25
26 function Footer() {
27 cat <<EOF >/dev/stdout
28 <footer>
29 Site content <a href="/LICENCE">CC-BY-NC-SA-4.0</a> Mira Ayre
30 2021-$(date +%Y)
31 (<a href="/gitweb.cgi?p=website;a=summary">view source</a>)<br>
32 Logo <a href="/LICENCE">CC-BY-NC-SA-4.0</a> Mira Ayre &amp; Erin Nova 2021
33 </footer></div></body></html>
34 EOF
35 }
36
37 function Head() {
38 cat <<EOF >/dev/stdout
39 <h1 id="head">$@</h1>
40 EOF
41 }