No commit activity in last 3 years
No release in over 3 years
A Bunto plugin to make front matter optional for Markdown files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.5
~> 0.40

Runtime

~> 3.4
 Project Readme

Bunto Optional Front Matter

A Bunto plugin to make front matter optional for Markdown files

Build Status

What it does

Out of the box, Bunto requires that any markdown file have YAML front matter (key/value pairs separated by two sets of three dashes) in order to be processed and converted to HTML.

While that behavior may be helpful for large, complex sites, sometimes it's easier to simply add a plain markdown file and have it render without fanfare.

This plugin does just that. Any Markdown file in your site's source will be treated as a Page and rendered as HTML, even if it doesn't have YAML front matter.

Usage

  1. Add the following to your site's Gemfile:
gem 'bunto-optional-front-matter'
  1. Add the following to your site's config file:
gems:
  - bunto-optional-front-matter

One potential gotcha

In order to preserve backwards compatability, the plugin does not recognize a short list of common meta files.

If you want Markdown files like your README, CONTRIBUTING file, CODE_OF_CONDUCT, or LICENSE, etc., you'll need to explicitly add YAML front matter to the file, or add it to your config's list of include files, e.g.:

include:
  - CONTRIBUTING.md
  - README.md

Disabling

Even if the plugin is enabled (e.g., via the :bunto_plugins group in your Gemfile) you can disable it by adding the following to your site's config:

require_front_matter: true