1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

Use nested <details> for webrings

This commit is contained in:
Rohan Kumar 2022-05-23 15:17:02 -07:00
parent 404d7d8561
commit b88be14eca
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -8,25 +8,28 @@
<h2 id="webrings">Webrings</h2> <h2 id="webrings">Webrings</h2>
{{ $webringData := after 1 (getCSV "," "/csv/webrings.csv") -}} {{ $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>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>
<ol> <details>
{{- range $i, $r := $webringData }} <summary>Toggle webrings list</summary>
{{- $webringName := index $r 0 }} <ol>
<li> {{- range $i, $r := $webringData }}
<details> {{- $webringName := index $r 0 }}
<summary>{{- $webringName -}}</summary> <li>
<ol> <details>
<li> <summary>{{- $webringName -}}</summary>
<a href="{{- index $r 2 -}}">{{- $webringName }} webring home</a> <ol>
</li> <li>
<li> <a href="{{- index $r 2 -}}">{{- $webringName }} webring home</a>
<a href="{{- index $r 1 -}}" rel="nofollow ugc" referrerpolicy="{{ $refPol }}">Previous {{ $webringName }} site</a> </li>
</li> <li>
<li> <a href="{{- index $r 1 -}}" rel="nofollow ugc" referrerpolicy="{{ $refPol }}">Previous {{ $webringName }} site</a>
<a href="{{- index $r 3 -}}" rel="nofollow ugc" referrerpolicy="{{ $refPol }}">Next {{ $webringName }} site</a> </li>
</li> <li>
</ol> <a href="{{- index $r 3 -}}" rel="nofollow ugc" referrerpolicy="{{ $refPol }}">Next {{ $webringName }} site</a>
</details> </li>
</li> </ol>
{{- end -}} </details>
</ol> </li>
{{- end -}}
</ol>
</details>
<p>If you&rsquo;re part of a webring and would like me to join, just ask. I&rsquo;ll probably accept if joining only requires me to add hyperlinks to this page (no scripts, external content, or images), and if the ring doesn&rsquo;t seem to promote anything I find objectionable.</p> <p>If you&rsquo;re part of a webring and would like me to join, just ask. I&rsquo;ll probably accept if joining only requires me to add hyperlinks to this page (no scripts, external content, or images), and if the ring doesn&rsquo;t seem to promote anything I find objectionable.</p>