1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00
seirdy.one/layouts
Rohan Kumar 8709bf9ec2
Overhaul webmention generation
Use a new branch of webmentiond that lets me pull in all webmentions for
all pages in a single JSON response

Before, Hugo would make one request to webmentiond per page to ask for
approved webmentions for that page. Sometimes, it makes two requests
because some pages used to have a different canonical location. In all,
it ended up making over 150 requests within a second or two. Webmentiond
can handle this for now, but this isn't sustainable: page count will
only increase with time. I wanted to have Hugo instead get all
webmentions for all pages in one cached request.

I recompiled webmentiond from
https://github.com/zerok/webmentiond/pull/65, which updates the API to
support admin access keys. The admin API allows pulling in all
webmentions for all pages, instead of pulling them in for one page at a
time.

Doing so requires getting a bearer token, so I had to manage a new CI
secret: the password for getting a token. I get the token in a shell
script (get-token.sh) and write it to a temporary file, then have Hugo
read the token from that file. The shell script gets the password using
either the CI secret (in CI) or using my password manager (on my
workstation).

TODO: support marginalia (mentions with fragments in their targets)
2022-12-19 11:07:57 -08:00
..
_default Add u-syndication, clean up interactions 2022-11-20 13:32:14 -08:00
about Make list pages structurally consistent 2022-08-01 20:53:21 -07:00
archetypes Fix feed titles 2022-06-01 08:58:44 -07:00
meta Make list pages structurally consistent 2022-08-01 20:53:21 -07:00
notes Add u-syndication, clean up interactions 2022-11-20 13:32:14 -08:00
partials Overhaul webmention generation 2022-12-19 11:07:57 -08:00
posts Add u-syndication, clean up interactions 2022-11-20 13:32:14 -08:00
shortcodes New article: the phrase "GNU/Linux" 2022-12-09 13:48:49 -08:00
index.gmi Fix some url redirects 2022-04-29 08:54:36 -07:00
index.html Add microdata for site name 2022-10-21 16:23:37 -07:00