1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-20 12:12:09 +00:00
seirdy.one/layouts/partials/webrings.html
Rohan Kumar 2b88317a46
Support "random" webring links
Will be necessary for inclusion into IndieSeek's Retroweb Ring.
2022-06-27 08:43:13 -07:00

41 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
Some webrings require the sending of a "Referer" header,
but my site has two non-canonical mirrors. Don't add those.
-->{{- $refPol := "no-referrer" -}}
{{- if eq site.BaseURL "https://seirdy.one/" -}}
{{- $refPol = "strict-origin" -}}
{{- end -}}
<h2 id="webrings">Webrings</h2>
{{ $webringData := after 1 (getCSV "," "/csv/webrings.csv") -}}
<p>This site is part of {{ len $webringData }} <a href="https://en.wikipedia.org/wiki/Webring">webrings</a>. A webring is a collection of sites in a circular doubly-linked list; each website links to the next and previous site in the list.</p>
<p>Some of the “next” and “previous” links contain JavaScript; you need to enable it to be re-directed to the correct page. Ive marked these links with “JS”.</p>
<details>
<summary>Toggle webrings list</summary>
<ol>
{{- range $i, $r := $webringData }}
{{- $webringName := index $r 0 }}
<li>
<details>
<summary>{{- $webringName -}}</summary>
<ol>
<li>
<a href="{{- index $r 2 -}}">{{- $webringName }} webring home</a>
</li>
<li>
<a href="{{- index $r 1 -}}" rel="nofollow ugc" referrerpolicy="{{ $refPol }}">Previous {{ $webringName }} site</a>
</li>
<li>
<a href="{{- index $r 3 -}}" rel="nofollow ugc" referrerpolicy="{{ $refPol }}">Next {{ $webringName }} site</a>
</li>
{{- if ne (index $r 4) "null" }}
<li>
<a href="{{- index $r 4 -}}" rel="nofollow ugc" referrerpolicy="{{ $refPol }}">Random {{ $webringName }} site</a>
</li>
{{- end }}
</ol>
</details>
</li>
{{- end -}}
</ol>
</details>
<p>If youre part of a webring and would like me to join, just ask. Ill probably accept if joining only requires me to add hyperlinks to this page (no scripts, external content, or images), and if the ring doesnt seem to promote anything I find objectionable.</p>