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:
parent
7ad0f51d1a
commit
fc9c5e5fa2
3 changed files with 36 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue