bytesnz / marss

Markdown and React blogging system
https://gitlab.com/bytesnz/marss
GNU General Public License v3.0
0 stars 0 forks source link

Ability to set type of document based on document id #4

Open bytesnz opened 6 years ago

bytesnz commented 6 years ago

As a user coming from hexo, I want to be able to set the type of documents based on the document id (filename), so that I can used the same folder structure (posts in _posts/)

interface idTypeMapping {
  /// Regular expression string to map ids to the type
  [type: string]: string,
  /// Default type for documents
  default: string
}