/hugo-blogcard

Enhance your Hugo site with dynamic link previews featuring rich content and adaptive favicons.

Primary LanguageHTMLMIT LicenseMIT

Hugo Link Preview Shortcode

Overview

This repository contains a Hugo shortcode designed to create rich, engaging link previews, commonly referred to as "blog cards". These previews are useful for embedding within blog posts, pages, or articles to offer a snapshot of linked content, including titles, descriptions, favicons, and images.

Features

  • Dynamic Content Retrieval: Automatically fetches and displays content title, description, and an image (if available) from the target URL.
  • Favicon Integration: Includes logic to handle various favicon sources, ensuring that the most appropriate icon is displayed for each link.
  • Responsive Design: Ensures that the preview cards look good on all devices, from desktops to mobile phones.
  • Customizable Appearance: Easy to customize with CSS for different styling needs.