1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

Compare commits

...

6 commits

Author SHA1 Message Date
Rohan Kumar
25367c55e7
Remove extra target URL components for webmentions
Remove query params, port numbers, bad schemes, anchors, etc. from
webmention target URLs.
2023-11-17 17:22:38 -08:00
Rohan Kumar
66b6ac0dbc
remove some redundant/unnecessary CSS rules 2023-11-17 16:02:23 -08:00
Rohan Kumar
66c4c62888
Make feedvalidator run offline
This is possible thanks to a feedvalidator bug being fixed:
<d4ee1132eb>
2023-11-17 15:25:31 -08:00
Rohan Kumar
02635dab8e
clarify nnia receipt 2023-11-17 12:12:08 -08:00
Rohan Kumar
5f9f65119b
Add receipts for skippers-bin 2023-11-17 04:34:08 -08:00
Rohan Kumar
7a560bf9c0
Clarify forge backend 2023-11-17 04:33:58 -08:00
6 changed files with 22 additions and 27 deletions

View file

@ -87,8 +87,17 @@ hint: hugo .hintrc-local
html-validate:
pnpm -s dlx html-validate --ext=html -c linter-configs/htmlvalidate.json $(OUTPUT_DIR)
.validate-feed-main:
scripts/bin/validate-feed file://$(PWD)/$(OUTPUT_DIR)/atom.xml
.validate-feed-posts:
scripts/bin/validate-feed file://$(PWD)/$(OUTPUT_DIR)/posts/atom.xml
.validate-feed-notes:
scripts/bin/validate-feed file://$(PWD)/$(OUTPUT_DIR)/notes/atom.xml
validate-feeds: .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: validate-feeds .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: lint-local
lint-local: html-validate validate-html validate-json lint-css htmlproofer
lint-local: html-validate validate-html validate-json lint-css htmlproofer validate-feeds
# dev server, includes future and draft posts
.PHONY: serve

View file

@ -42,15 +42,6 @@ axe-ff:
.PHONY: axe axe-ff
.validate-feed-main:
scripts/bin/validate-feed $(HUGO_BASEURL)atom.xml
.validate-feed-posts:
scripts/bin/validate-feed $(HUGO_BASEURL)posts/atom.xml
.validate-feed-notes:
scripts/bin/validate-feed $(HUGO_BASEURL)notes/atom.xml
validate-feeds: .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: validate-feeds .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: all-extra
all-extra: axe-ff validate-json equal-access htmlproofer lint-css validate-feeds

View file

@ -16,8 +16,8 @@ This repository is pushed to the following forges:
- [Sourcehut](https://sr.ht/~seirdy/seirdy.one/)
- [GitLab.com](https://gitlab.com/Seirdy/seirdy.one)
- [GitHub](https://github.com/Seirdy/seirdy.one)
- [Codeberg](https://codeberg.org/Seirdy/seirdy.one)
- [envs.net gitea](https://git.envs.net/Seirdy/seirdy.one)
- [Codeberg (forgejo)](https://codeberg.org/Seirdy/seirdy.one)
- [envs.net (gitea)](https://git.envs.net/Seirdy/seirdy.one)
## Dependencies

View file

@ -183,11 +183,9 @@ html {
h1,
h2,
h3,
html,
main,
pre,
summary,
dl > div,
:not(nav) > ol,
[role="doc-endnotes"],
[role="doc-preface"] {
@ -257,7 +255,6 @@ html {
dd {
margin: 0;
padding: .25em .25em .5em 1.75em;
contain: inline-size layout paint;
}
aside > a,
@ -287,11 +284,9 @@ html {
margin-left: -.25em;
}
/* stylelint-disable selector-max-compound-selectors -- simplest way to target post-meta */
h1 + ul > li > a {
h1 + ul a {
margin-left: 0;
}
/* stylelint-enable selector-max-compound-selectors */
/* Increase tap-target size of title links. */

View file

@ -287,8 +287,10 @@ asbestos.cafe {#asbestos}
: [Antisemitism from local user](https://web.archive.org/web/20230803032450/https://shrine.moe/notice/AYJfESHlqB0IvHPfqS) followed by ableism from admin.
: [Queerphobic user](https://web.archive.org/web/20230803032850/https://pl.starnix.network/notice/AY1JMsQpMH4NukiNE0).
bae.st {#baest}
bae.st {#baest} OR skippers-bin.com
: [Admin profile page has an "n-word pass"](https://web.archive.org/web/20230730000208/https://bae.st/sjw). Runs a host of bots posting lewd artwork, some of which venture into lolicon and Black-fetishism territory (e.g. "NessaBot"). Runs "glow_in_the_dark_cia_agent", one of the biggest followbots on Fedi. Instance rejects deletes.
: [Another admin has a Confederate battle-flag and unreclaimed transphobic slurs in their display name](https://web.archive.org/web/20231117114815/https://bae.st/users/mactonite).
: [skippers-bin.com is run by the same person as bae.st](http://archive.today/2023.11.17-114233/https://skippers-bin.com/@sjw).
banepo.st {#banepost}
: [Runs a blockbot](https://archive.ph/2c9Js). Admin posts [antisemitism, homophobia, and transphobia in one post](https://web.archive.org/web/20230730035807/https://www.banepo.st/notice/AXRzgFfrwY1BRaa9SK), [another with more of the same](https://archive.ph/JxXRv), [all of that with a side of ableism](https://web.archive.org/web/20230730040446/https://www.banepo.st/notice/AXql6rXn1tybo4umiO).
@ -538,7 +540,7 @@ nicecrew.digital {#nicecrew}
: Has [a bot to spam threads with racist slurs](http://archive.today/2023.08.03-153949/https://nicecrew.digital/@nice-nigger).
nnia.cc OR nnia.space {#nnia}
: Paraphile pro-zoo pro-MAP _and pro-contact_ instance that also allows minors. [Pro-C zoosexuality](https://web.archive.org/web/20230819210233/https://nnia.space/@scramblecore/110910301694831861). They try to avoid getting defederated by moving discourse around contact stances to their Matrix servers, but is very clearly full of pro-C individuals and minors alike.
: Paraphile pro-zoo pro-MAP instance that also allows both minors and pro-contact users to register. [Pro-C zoosexuality](https://web.archive.org/web/20230819210233/https://nnia.space/@scramblecore/110910301694831861).
: nnia.cc is a newer instance that [claims to be a continuation of nnia.space](https://web.archive.org/web/20231104224647/https://nnia.cc/about). It also claims to have closed federation, but I included it alongside nnia.space should that ever change, since I can't imagine that FediNuke users would wish to federate with it anyway.
noagendasocial.com {#nas}

View file

@ -17,21 +17,19 @@
{{- $oldTarget := $target | replaceRE "/posts" "" | replaceRE "/$" ".html" -}}
{{ $targets = (slice $target $oldTarget) }}
{{- end -}}
{{- /* We can't just use a simple "where" function because we need to ignore URL anchors when making a comparison: https://discourse.gohugo.io/t/add-like-comparison-operator-to-the-where-function/42013/4 */ -}}
{{- /* We can't just use a simple "where" function because we need to ignore URL anchors/query-params when making a comparison: https://discourse.gohugo.io/t/add-like-comparison-operator-to-the-where-function/42013/4 */ -}}
{{- $webmentions := slice -}}
{{- range $allMentions -}}
{{- if in $targets .target -}}
{{ $webmentions = $webmentions | append . }}
{{- else -}}
{{- $fragment := printf `#%s` (urls.Parse .target).Fragment -}}
{{- if gt (len $fragment) 1 -}}
{{- $trimmedTarget := strings.TrimSuffix $fragment .target -}}
{{- $u := urls.Parse .target -}}
{{- $trimmedTarget := printf `https://%s%s` $u.Hostname $u.Path -}}
{{- if in $targets $trimmedTarget -}}
{{ $webmentions = $webmentions | append . }}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- /* Render webmentions if they exist */ -}}
{{- $count := (len $webmentions) -}}
{{- if gt $count 0 -}}