the home site for me: also iteration 3 or 4 of my site
1<hr />
2<div id="footer-container">
3 <p style="margin-bottom: 0.5rem">
4 © {{ now() | date(format="%Y") }} Kieran Klukas ||
5 <code id="visits">0</code> page visits || {% set hash =
6 get_env(name="CF_PAGES_COMMIT_SHA", default=load_data(path=".git/refs/heads/main", required=false))%}{% if hash is not string %}{% set hash = "unknown" %}{% endif %}<a href=https://tangled.sh/@dunkirk.sh/zera/commit/{{ hash }}>zera@{{ hash |
7 truncate(length=7, end="")}}</a>
8 </p>
9 <p style="margin-bottom: 0.5rem">
10 Webrings:
11 <a href="https://w.elr.sh">elr</a>
12 [<a href='javascript:void(0)' onclick='randomSite()'>random</a> |
13 <a href='#' id='prev-link'>prev</a> |
14 <a href='#' id='next-link'>next</a>] •
15 <a href="https://ctp-webr.ing">ctp</a>
16 [<a href="https://ctp-webr.ing/dunkirk/previous">prev</a> |
17 <a href="https://ctp-webr.ing/dunkirk/next">next</a>]
18 </p>
19 <p>
20 Content licensed under
21 <a
22 target="_blank"
23 rel="noopener noreferrer"
24 href="https://creativecommons.org/licenses/by-nc-sa/4.0/"
25 >CC BY-NC-SA 4.0</a
26 >
27 </p>
28 <p>
29 Code licensed under
30 <a
31 target="_blank"
32 rel="noopener noreferrer"
33 href="https://tangled.sh/@dunkirk.sh/zera/blob/main/LICENSE.md"
34 >AGPL 3.0</a
35 >
36 </p>
37 <script type="text/javascript" src="https://w.elr.sh/onionring-variables.js"></script>
38 <script>
39 thisSite = "https://dunkirk.sh"
40 thisIndex = null;
41
42 for (i = 0; i < sites.length; i++) {
43 if (thisSite.startsWith(sites[i])) {
44 thisIndex = i;
45 break;
46 }
47 }
48
49 function randomSite() {
50 otherSites = sites.slice();
51 otherSites.splice(thisIndex, 1);
52 randomIndex = Math.floor(Math.random() * otherSites.length);
53 location.href = otherSites[randomIndex];
54 }
55
56
57 previousIndex = (thisIndex-1 < 0) ? sites.length-1 : thisIndex-1;
58 nextIndex = (thisIndex+1 >= sites.length) ? 0 : thisIndex+1;
59
60 document.getElementById('prev-link').href = sites[previousIndex];
61 document.getElementById('next-link').href = sites[nextIndex];
62 </script>
63</div>