Demonstrating Internal Link Previews
This post showcases the new Wikipedia-style internal link previews. When you hover over an internal link (a link starting with a /), a small tooltip will appear containing the page title and a brief summary.
Try it out
Hover over these links to see the feature in action:
- Rich Content Elements: See /2026/01/01/demo-rich-content/ page for more.
- Encrypted Posts: See /2026/01/01/demo-encrypted/ page for more.
- Media & Galleries: See /2026/01/01/demo-media-gallery/ page for more
How it works
The system uses a custom Alpine.js component. When your mouse enters a valid internal link:
- The browser fetches the target URL in the background.
- It parses the HTML to find the
og:descriptionmeta tag or the first paragraph of text. - A tooltip is displayed at your cursor’s position with the gathered information.
This keeps readers engaged by allowing them to “peek” at other content without leaving the current page.