I recently upgraded my 3.x installation to 4.1 and after fixing a couple minor bugs, I’ve run across a stumper: all my blog posts are missing. They seem to be parsed as regular pages instead of blog pages. When I look at the entry in the Site Map I see the following:
Path articles/2002-02-21-eagle-harbor-at-dawn
URL /articles/2002-02-21-eagle-harbor-at-dawn
Source File source/articles/2002-02-21-eagle-harbor-at-dawn.markdown
Data {:author=>"jeff", :title=>"Eagle Harbor at Dawn", :date=>#<Date: 2002-02-21 ((2452327j,0s,0n),+0s,2299161j)>, :categories=>["Travel"]}
Options {:layout=>"article"}
My blog definition is as follows:
activate :blog do |blog|
blog.permalink = '{year}/{month}/{title}'
blog.sources = 'articles/{year}-{month}-{day}-{title}.html'
blog.layout = 'article'
blog.default_extension = '.markdown'
end
If I change the original source file from *.markdown
to *.html.markdown
(which is absurd), then the article will be recognised. Surely, there has to be a way to get all the articles to be recognised without changing all extensions to be .html.markdown
.