Closed Naatan closed 9 years ago
Hey @Naatan Two things you can try:
.md
won't match on files that have e.g. a .md.erb
extension.Thanks for your response!
Try the following in your config.rb
:
blog.default_extension = ".html.md"
No dice
Hmm, can you try putting the articles loop in the main template file rather than a partial?
I have tried that, but it did nothing.
Is there some way I can debug this?
Ah, I see it. Sorry.
Because you set a prefix in config to blog
, you don't need to also add it to the sources
value. Doing do makes the source path look something like: prefix + source = 'blog/blog/{year}-...
Remove the blog/
prefix on your sources value.
Thanks @tdreyno - that did it! :)
I'm transferring a site from docpad to middleman, currently stuck at getting middleman-blog to work.
My config: https://github.com/Komodo/komodo-website/blob/middleman/config.rb#L4
Note some articles have titles that do not match the filenames, but a lot of them do. I'd imagine it should pick those up as needed.
Did I forget something here? Am I doing something wrong?
Edit: To clarify - this page remains completely empty: https://github.com/Komodo/komodo-website/blob/middleman/source/blog.html.erb
Dumping "page_articles" returns
[]
And the actual blog articles do not reflect the blog.permalink setting.