loading...

re: Statically generating a blog with Svelte + Sapper VIEW POST

FULL DISCUSSION
 

The sapper template uses _posts.js that has all the blog posts jammed into there. Is there a template that uses markdown files instead?

 

I'm not aware of a template that does so, but you can use anything as a data source. In my blog, I keep my blog posts as markdown in a MySQL (not files though), and convert them using the "marked" package. My code is on GitHub if you're interested. Here's where I actually do the database queries and convert Markdown, though I'm not sure how helpful it'll be for you: github.com/jesseskinner/codingwith...

 
Code of Conduct Report abuse