Closed iwarner closed 7 years ago
Hi @iwarner, I believe I experience the same issue earlier today https://github.com/middleman/middleman-blog/issues/327 I resolved it by converting my layout files from .haml
to .erb
. I'm not sure what's going on here, but it seems middleman-blog
is having difficulties with Haml layouts (see also https://github.com/middleman/middleman-blog/issues/322). Hope that helps you!
i feel so bad now :( I used middleman because it supported HAML out of the box but apparently it fails? sigh
oh well. I've been trying to investigate this every couple of days or so but I don't think I can manage to pinpoint why it would fail in HAML but not in ERB
@corroded My setup worked with some files in Haml as long as the layouts were in ERB. Even the partials I used in my layouts are in Haml without issue. It seems that only the blog and parent layouts need to be ERB files. Hopefully that helps your situation :)
I think the issue I found was that there is already an ID generated internally
I went to
http://localhost:4567/__middleman
to examine the structure and noticed this - removing the ID from the frontmatter of the templates seemed to solve the problem
my templates still have the extension .html.haml
hope that helps
Hiya
using the following config :
The frontmatter of the blog has the ID
However nothing is built with this structure - is something protected with what I am trying to do?