Hexo Custom Layout

screenshot of Hexo Custom Layout

Hexo plugin that allows loading custom layouts without modifying theme. Also provided useful tags for including snippet files and small templates.

Overview

The Hexo Custom Layout plugin is a tool that allows users to load and apply custom layouts in their Hexo theme without modifying any theme files. Users can insert files, templates, and snippets into posts or pages using tags and customize the appearance of their website. It also provides the flexibility to generate standalone pages in post asset folders. This plugin simplifies the process of creating and managing layouts, making it easier for users to customize their Hexo websites.

Features

  • Load custom layouts without modifying theme files: The plugin allows users to apply custom layouts to their Hexo theme without the need to modify any theme files directly.
  • Apply custom layouts from a relative path or from post asset folder: Users can load custom layouts from a relative path or directly from the post asset folder.
  • Use tags to insert another file into posts or pages: Tags can be used to insert files, templates, snippets, etc. into posts or pages, enhancing the customization options.
  • Insert templates into posts or pages: Users can insert templates, written in Nunjucks, EJS, etc., into posts or pages, allowing for greater flexibility in customizing the content.
  • Can pass arguments when referencing: The plugin supports passing arguments when referencing files, templates, or snippets in order to personalize the content further.
  • Generate sub pages as standalone pages in post asset folders: Users can create standalone pages in post asset folders and name them using a specific format to render them as independent pages.

Summary

The Hexo Custom Layout plugin is a powerful tool that enables users to load and apply custom layouts to their Hexo themes without modifying any theme files. It provides various features, such as inserting files, templates, and snippets into posts or pages, creating standalone pages in post asset folders, and passing arguments when referencing content. By simplifying the customization process, this plugin empowers users to create unique and personalized websites using Hexo.