middleman-blog icon indicating copy to clipboard operation
middleman-blog copied to clipboard

RuntimeError flag --blog

Open nikolaokonesh opened this issue 6 years ago • 1 comments

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!!!

nikolaokonesh avatar Oct 26 '18 10:10 nikolaokonesh

What command are you running?

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

tdreyno avatar Oct 26 '18 18:10 tdreyno