Reputation: 11
Is it possible in middleman to add a frontmatter flag like "use_in_build" with values true or false. And skip these during build process?
Upvotes: 1
Views: 201
Reputation: 1116
Depending on your need for setting this flag, it might suffice to use the filename convention: any file that begins with an underscore (_
) is skipped during build.
Upvotes: 0
Reputation: 2051
There is published: false for the middleman-blog extension. Maybe you can extend this to the rest of the middleman build somehow.
Upvotes: 0
Reputation: 8432
I don't think you do that using the frontmatter, but you can specify files to ignore in config.rb
.
configure :build do
ignore /page.html/ # Regular expression
end
Is that any use to you?
Upvotes: 2