Properly clear frontmatter cache when files change, and calculate frontmatter in the right order so resource_list_manipulators can see it.

This commit is contained in:
Ben Hollis 2012-05-19 14:29:38 -07:00
parent 7ad0f51d1a
commit fc9c5e5fa2
3 changed files with 36 additions and 12 deletions

View file

@ -140,6 +140,10 @@ module Middleman
# Setup custom rendering
register Middleman::CoreExtensions::Rendering
# Parse YAML from templates. Must be before sitemap so sitemap
# extensions see updated frontmatter!
register Middleman::CoreExtensions::FrontMatter
# Sitemap
register Middleman::Sitemap
@ -158,9 +162,6 @@ module Middleman
# i18n
register Middleman::CoreExtensions::I18n
# Parse YAML from templates
register Middleman::CoreExtensions::FrontMatter
# Built-in Extensions
# Provide Apache-style index.html files for directories