mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Fix webrings and webmentions
This commit is contained in:
parent
931229e5e3
commit
0fb45529c7
2 changed files with 6 additions and 6 deletions
|
@ -81,7 +81,8 @@
|
||||||
{{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}}
|
{{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}}
|
||||||
<p role="doc-tip" itemprop="accessibilitySummary">This comment may have major formatting errors that could impact screen reader comprehension.</p>
|
<p role="doc-tip" itemprop="accessibilitySummary">This comment may have major formatting errors that could impact screen reader comprehension.</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<p><q itemprop="text" class="p-content">{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` ""}}</q></p>
|
<p><q itemprop="text" class="p-content">{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` "" | replaceRE ` \n` `
|
||||||
|
`}}</q></p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</dd>
|
</dd>
|
||||||
|
|
|
@ -89,11 +89,10 @@ netizens() {
|
||||||
printf 'Netizens,'
|
printf 'Netizens,'
|
||||||
{
|
{
|
||||||
curl -sSL --compressed https://netizensring.link/onionring-variables.js \
|
curl -sSL --compressed https://netizensring.link/onionring-variables.js \
|
||||||
| grep -C 1 https://seirdy.one/ | sd -s '];' "'https://netizensring.link/,'"
|
| grep -C 1 https://seirdy.one/
|
||||||
echo "'null',"
|
} | sd 'https://seirdy.one/,?' 'https://netizensring.link/' \
|
||||||
} | sd 'https://seirdy.one/,?' 'https://netizensring.link/,' \
|
| sd "\n|'|\r" '' | trim_trailing_comma
|
||||||
| sd "\n|'" '' | trim_trailing_comma
|
echo ',null'
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print_csv_values() {
|
print_csv_values() {
|
||||||
|
|
Loading…
Reference in a new issue