Hexo Tag Link Preview

screenshot of Hexo Tag Link Preview
hexo

Embed a link preview on your Hexo article.

Overview

The hexo-tag-link-preview is a powerful tool for Hexo users that enables you to seamlessly embed link previews within your articles. This functionality enhances the content by allowing readers to see a visual snapshot of external links, enriching their experience and informing them before they click through. Being easy to install and user-friendly, it’s a perfect addition for bloggers and content creators looking to modernize their posts.

Using this tool, you can customize how links appear by defining various attributes, making your articles more engaging and informative. In addition to showing a preview of the link, you also have options to control the opening behavior and SEO considerations.

Features

  • Easy Installation: Install it effortlessly with npm install hexo-tag-link-preview or yarn add hexo-tag-link-preview.
  • Customizable Attributes: Define the URL, target window, and rel attribute, allowing for complete control over link behavior and SEO.
  • Flexible Usage: Use the simple syntax {% linkPreview url target rel %} to embed link previews directly into your posts.
  • Abbreviated Attributes: The target and rel attributes can be abbreviated for quick usage, streamlining the embedding process.
  • Class Name Customization: Provide a custom class name for the link preview HTML to match your site's styling (default is "link-preview").
  • Character Limit for Description: Set a specific character length for the og-description to control how much text is shown in previews (default is 140 characters).
  • Licensing: It is open-source and licensed under MIT, ensuring that it can be freely used and modified.
hexo
Hexo

Hexo is a static site generator built with Node.js that enables developers to create fast and efficient websites using Markdown, EJS, and Stylus. It offers features such as server-side rendering, plugin support, and easy deployment to hosting services like GitHub Pages and Netlify.