Hexo Front Matter Excerpt

screenshot of Hexo Front Matter Excerpt
hexo

A plugin for the Hexo static site generator to add support for post excerpts in yaml front matter.

Overview

The Hexo Front Matter Excerpt plugin is a fantastic addition for anyone using Hexo, a static site generator. This plugin enhances the way post excerpts are managed, allowing users to set excerpts directly in the YAML front matter, which simplifies the content management process significantly. Instead of relying on the traditional <!-- more --> tag, users can now define excerpts more cleanly and efficiently.

With this tool, writers can enjoy a streamlined approach to creating excerpts that fit their needs, ensuring a consistent and professional presentation of their content. This is particularly useful for those who want better control over how their posts are summarized and displayed on their sites.

Features

  • YAML Front Matter Support: Easily define post excerpts directly in the front matter without extra tags, making posts cleaner and easier to manage.
  • Overrides Existing Excerpts: If both an excerpt in YAML front matter and one using the <!-- more --> tag are present, the plugin prioritizes the tag's content for complete control.
  • Zero Configuration: Installation is straightforward; no additional configuration is required after installation, allowing for quick setup.
  • Flexible Fallback: If no excerpt is defined by either method, the post.excerpt will simply be undefined, giving users flexibility in their content management.
  • Easy Installation: With simple commands using npm or yarn, getting started with this plugin is hassle-free.
  • Active Development: The plugin supports contributions for enhancements, encouraging community involvement and continuous improvement.
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.