Skip to content

In reply to https://jan.boddez.net/notes/75e3d7fec8. The title and author …

In reply to https://jan.boddez.net/notes/75e3d7fec8.

The title and author thingy works as follows: We use apiFetch to call a custom REST API endpoint, and pass along the URL in question. The page gets downloaded and parsed, and if it sports microformats we use those to get an author name, if any, and title. If no title is found, we assume a note and fall back on the bare URL. If the page is not microformatted, we look for its title element instead.