This blog post will be about getting NetlifyCMS working with a middleman blog.
I first setup middleman and then had to make sure that I went through and configured the two systems to generate the right file extensions.
First I tried to adjust the middleman configuration - this turned out to be alot harder than expected.
I then found out through issue diving that netliftycms allows one to configure the extenstion. This is a great thing, but it important that if you set the extenstion to a non standard value - “.html.markdown” in this case so that the netlifycms generates files that the middleman-blog engine understands. you must set the format.
Also one must make sure that you set your blog to the timezone that you are editing the file in. Middleman gets upset if your blog post is has a published date that does not match the file name. In my case I had to set my middleman timezone to be in Mountain time.
I’m not sure what will happen if I try to publish a blog post when i’m traveling - might be best not to use the CMS interface if your local timezone is not the same as your middleman instance.
It could be possible to not use the published date as a date field and maybe instead type your own date complete with timezone into the field for middleman to parse. 🤷♂️
I think that these notes are enough for now. Reviewing them along with the code that is in the repo should be enough for me to put together the rest of this post.
This is great but the editor sucks.
This is an edit that should get published on my site.
1
2
3
4
5
6
7
8
9
def awesome
if 10 > 11
puts "rage"
else
puts "all good!"
end
hash = { this: "key" }
end