Closed twss closed 7 years ago
Is something in your layout expecting blog data?
Doh! Yes, that. Exactly that!
I'd forgotten to remove the blog-related stuff from the template.
Cheers. Fresh eyes always help. :+1:
BTW are you aware that the multiblog tests are not being run by the default test suite currently, and when included they all fail?
As the @three_one
tests are only run for Middleman 3.1.x. Shouldn't this be 3.1.x and up.
Something else may be amiss in the test suite.
Hiya the whole testing needs looking at as Travis is failing in many areas at the moment. Can you open a new issue regarding the testing please.
Created a new blog project using
middleman init test --template=blog
, removed the defaultactivate :blog
fromconfig.rb
and added:Created a file
test.html.erb
, containing only:When navigating to http://127.0.0.1:4567/test/, I receive the following
RuntimeError at /test.html
You must either specify the blog name in calling this method or in your page frontmatter (using the 'blog' blog_name)
Clearly, we don't want non-blog content in a blog.