middleman / middleman-blog

Blog Engine Extension for Middleman
https://middlemanapp.com
MIT License
325 stars 179 forks source link

RuntimeError flag --blog #367

Closed nikolaokonesh closed 7 months ago

nikolaokonesh commented 5 years ago

why not working?

activate :blog do |blog|
  blog.name = "blog"
  blog.prefix = "blog"
  blog.layout = "layouts/post"
  blog.default_extension = ".md"
end
activate :blog do |blog|
  blog.name = "blog2"
  blog.prefix = "blog2"
  blog.layout = "layouts/post"
  blog.default_extension = ".md"
end

RuntimeError: You have more than one blog so you must either use the flag --blog (ex. --blog 'myBlog') when calling this method, or add blog: [blog_name] to your page's frontmatter

Help please!!!

tdreyno commented 5 years ago

What command are you running?

You may need to set a specific blog.sources for each, with different directories for each set of files.