I have defined two blogs in config.rb
:
activate :blog do |blog|
blog.name = "notes"
blog.prefix = "notes"
blog.custom_collections = {
category: {
link: '/categories/{category}.html',
template: '/notes_category.html'
}
}
blog.permalink = "{year}/{month}/{day}/{title}.html"
blog.sources = "{year}-{month}-{day}-{title}.html"
blog.layout = "post"
blog.summary_separator = /(READMORE)/
blog.summary_length = 250
blog.year_link = "{year}.html"
blog.month_link = "{year}/{month}.html"
blog.day_link = "{year}/{month}/{day}.html"
blog.default_extension = ".markdown"
blog.calendar_template = "calendar.html"
end
activate :blog do |blog|
blog.name = "essays"
blog.prefix = "essays"
blog.permalink = "{year}/{month}/{day}/{title}.html"
blog.custom_collections = {
category: {
link: '/categories/{category}.html',
template: '/essays_category.html'
}
}
blog.sources = "{year}-{month}-{day}-{title}.html"
blog.layout = "essay"
blog.summary_separator = /(READMORE)/
blog.summary_length = 250
blog.year_link = "{year}.html"
blog.month_link = "{year}/{month}.html"
blog.day_link = "{year}/{month}/{day}.html"
blog.default_extension = ".markdown"
blog.calendar_template = "calendar.html"
end
The first blog works, the second does not and I canât understand why. The links layouts and everything else works. The directories are properly structures, but the listing of âessaysâ is empty, even though there are 4 articles in the âsource/essaysâ directory. Any ideas where to look?
Regards,
P.