-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
Pagefind should read Open Graph protocol meta tags from pages to get the title, URL, and image information for use in search results. Example tags from the <head> of a document:
<meta property="og:title" content="Apple Turnaround">
<meta property="og:url" content="http://hypercritical.co/2025/05/20/apple-turnaround">
<meta property="og:image" content="https://hypercritical.co/2025/05/20/images/apple-turnaround.png">
<meta property="og:image:alt" content="A classic Apple logo rotating within a logo-shaped cutout on a platinum background">
<meta property="og:image:width" content="640">
<meta property="og:image:height" content="303">
Right now, Pagefind often requires data-pagefind-meta=… attributes to be added in various places in the pages that are being indexed, even if all the desired information is ready and waiting in these og:… meta tags.
(If there's a way to add data-pagefind-meta=… attributes these meta tags, that could be a temporary workaround, but I could not get it to work.)
samsonjs, timbray, duggan, gblakeman, HP and 1 more
Metadata
Metadata
Assignees
Labels
No labels