Is there a way I can use {id}-{title} instead of date for article file name and url ?
Hello @borisrorsvort
Maybe you can try to change the config.rb
file with this example
activate :blog do |blog|
...
blog.permalink = 'blog/:id-:title.html'
blog.sources = 'blog/articles/:id-:title.html'
end
And in the frontmatter of your article add
---
id: 1
title: my awesome title
---
Yep thanks its works. My exact config is now:
activate :blog do |blog|
blog.prefix = 'articles'
blog.permalink = '{title}.html'
blog.sources = '{id}-{title}.html'
end
then name each file manually: 1-title.html, 2-title.html …
no need to specify id in the frontmatter then