Jekyll Titles From Headings screenshot

Jekyll Titles From Headings

Author Avatar Theme by Benbalter
Updated: 27 Oct 2021
96 Stars

Overview

Jekyll Titles from Headings is an innovative plugin designed for users of Jekyll who want to streamline the title management process in their web pages. This plugin automatically utilizes the first heading in your Markdown document as the page title when no explicit title is provided in the YAML Front Matter. This feature is particularly useful for individuals who frequently work with Jekyll and want to ensure that their content is tidy and semantically rich without additional hassle. By integrating this functionality, the plugin not only enhances readability but also improves compatibility with other plugins that rely on the page title.

This solution addresses a common pain point for Jekyll users, making it easier to maintain a cohesive structure across various templates and plugins. Whether you’re using features like Jekyll Optional Front Matter or managing collections of content, this plugin helps keep things organized and efficient, eliminating the need for repetitive title entries.

Features

  • Automatic Title Generation: Automatically sets the page title to the first Markdown heading if one is not provided, simplifying the title management process.
  • Semantic Storage: Titles are stored semantically within the document, making them readable both in Markdown format and when rendered for machine processing.
  • Configurable Options: Users can customize various settings in the _config.yml file, allowing for tailored integration with specific site layouts.
  • Stripping Titles: Avoids double rendering of titles by offering an option to strip the title from the content if the theme relies on page.title.
  • Collection Compatibility: Offers an option to enable title generation for collection items, overriding inferred titles when necessary.
  • Easily Disable: Allows users to disable the plugin without having to remove it completely, providing flexibility in managing site functionality.