From 4491154cd8fdc0afba789aa3f4752c6d36147dce Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 15 Mar 2022 13:48:12 -0700 Subject: [PATCH] Webrings: add referrers, hotline, and criteria - Some webrings I might eventually join require sending the origin via referrer. Make per-link exceptions to my "no-referrer" policy sent via HTTP header. - Add hotline webring - Add criteria for me to join a webring. --- csv/webrings.csv | 1 + layouts/partials/webrings.html | 28 +++++++++++++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/csv/webrings.csv b/csv/webrings.csv index 38730f2..3514be7 100644 --- a/csv/webrings.csv +++ b/csv/webrings.csv @@ -3,3 +3,4 @@ An Indieweb Webring,https://xn--sr8hvo.ws/%F0%9F%98%A9%F0%9F%9A%A3%F0%9F%8D%91/p Fediring,https://fediring.net/previous?host=seirdy.one,https://fediring.net/,https://fediring.net/next?host=seirdy.one The Yesterweb ring,https://webring.yesterweb.org/noJS/index.php?d=prev&url=https://seirdy.one/,https://yesterweb.org/webring/,https://webring.yesterweb.org/noJS/index.php?d=next&url=https://seirdy.one/ The Retronaut webring,https://webring.dinhe.net/prev/https://seirdy.one,https://webring.dinhe.net/,https://webring.dinhe.net/next/https://seirdy.one +Hotline Webring,https://hotlinewebring.club/seirdy/previous,https://hotlinewebring.club,https://hotlinewebring.club/seirdy/next diff --git a/layouts/partials/webrings.html b/layouts/partials/webrings.html index b204d1f..e3d372f 100644 --- a/layouts/partials/webrings.html +++ b/layouts/partials/webrings.html @@ -1,11 +1,25 @@

Webrings

-

This site is part of some webrings:

+

This site is part of some webrings:{{site.BaseURL}}

-{{ range $i, $r := after 1 (getCSV "," "/csv/webrings.csv") }} -

- · -{{- index $r 0 -}} · - -

+ +{{ $refPol := "no-referrer" }} +{{ if eq site.BaseURL "https://seirdy.one/" }} + {{ $refPol = "strict-origin" }} {{ end }} + + +

If you're part of a webring and would like me to join, just ask. I'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't seem to promote anything I find objectionable.