static-api-generator icon indicating copy to clipboard operation
static-api-generator copied to clipboard

Added support for markdown files with yaml frontmatter.

Open raae opened this issue 6 years ago • 3 comments

I have been looking for a project like this so I can have a separate repo for the content of my site. I, however, needed support for more blog style content, ie: markdown files with YAML front-matter.

This is my attempt at solving my requirements and it might be a useful extension of your project so I am letting you know through this pull request.

Tests have been added.

raae avatar Jan 26 '18 13:01 raae

Hi! I was looking for something that does exactly this. I tried your fork and I was wondering. Should it check for frontmatter first and if it doesn't exist add the rest of the file's content as the __body?

gavinmcfarland avatar Sep 23 '19 23:09 gavinmcfarland

I do not really remember what I did as this is a very long time ago. Will have some time to look into this in a couple of weeks if you would like to collaborate.

raae avatar Sep 25 '19 07:09 raae

No worries at all, I appreciate it was a long time ago. Yeah that sounds good. I think I can have a look at it first, it should be as simple as checking if there is any frontmatter and if not, capture the content as one big field.

gavinmcfarland avatar Sep 25 '19 11:09 gavinmcfarland