benbalter / jekyll-optional-front-matter

A Jekyll plugin to make front matter optional for Markdown files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a remove_originals setting for the non-optional front-matter?

samuelgoto opened this issue · comments

The remove_original flag works great for me when front-matter is optional in this plugin.

optional_front_matter:
  remove_originals: true

Any chance you'd know if there is such a setting for when front-matter is passed (probably outside of the scope of this plugin, but wanted to check in case you knew)?

I think I understand what you're asking. If you mean that frontmatter exists on the original files, then you simply would include them in the _config.yml file under exclude:

This does mean that they wouldnt be copied over to the rendered site as .md's though. It would just not copy them over at all.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.