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/partials
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
..
functions Internal: markdown extension for adding link attrs 2022-02-28 13:41:24 -08:00
breadcrumblist.html Styles: more containment, fix spacing 2022-07-24 11:28:23 -07:00
footer.html New section: "Meta" 2022-07-10 22:36:22 -07:00
full-article.html Add u-syndication, clean up interactions 2022-11-20 13:32:14 -08:00
head.html fix indielogin 2022-11-19 17:18:22 -08:00
header.html Make the skip-link point to h1 instead of main 2022-07-13 08:31:20 -07:00
indieweb-author.html Indieweb: add u-photo and h-entry where relevant 2020-12-29 15:06:51 -08:00
indieweb-icon.html Indieweb: add u-photo and h-entry where relevant 2020-12-29 15:06:51 -08:00
interact.html A11y: fix some bad semantics 2022-11-26 12:01:41 -08:00
post-meta.html Shortcode fixes 2022-10-23 14:54:36 -07:00
posts.html Make list pages structurally consistent 2022-08-01 20:53:21 -07:00
prev-next.html Add some culture to the prev-next footer widget 2022-11-20 10:44:37 -08:00
processed-content.html Replace unnecessary use of <br> with something simpler 2022-08-08 17:30:43 -07:00
reply-context.html Allow reply-context without author 2022-08-12 00:00:03 -07:00
search.html remove link from label 2022-09-22 09:09:49 -07:00
syndication.html Add u-syndication, clean up interactions 2022-11-20 13:32:14 -08:00
webmention-form.html Smarten some punctuation 2022-10-24 12:47:37 -07:00
webmentions.html Overhaul webmention generation 2022-12-19 11:07:57 -08:00
webrings.html Simplify webring list, fix list-item cutoff 2022-08-24 20:14:09 -07:00
wordcount.html Whitespace fix 2022-06-04 16:43:18 -07:00