feat: add unfurl shortcode for rich link preview cards

Adds {% unfurl "URL" %} shortcode that renders any URL as a rich card
with OpenGraph metadata (title, description, image, favicon). Uses
unfurl.js locally — no external API dependency. Results cached for 1
week in .cache/unfurl/. Also fixes Mastodon embed server config
(mstdn.social → indieweb.social).
This commit is contained in:
Ricardo
2026-02-20 11:29:11 +01:00
parent 656a70eb0e
commit 897daca686
5 changed files with 253 additions and 3 deletions

View File

@@ -29,7 +29,8 @@
"markdown-it-anchor": "^9.2.0",
"pagefind": "^1.3.0",
"rss-parser": "^3.13.0",
"satori": "^0.19.2"
"satori": "^0.19.2",
"unfurl.js": "^6.4.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.0",