Discussions

Ask a Question
Back to All

Compile Markdown only files

I looked at https://github.com/static-dev/spike-tpl-jekyll and saw that the post examples are sugraml files with some Markdown. Is there a way to compile pure Markdown files?

Hey there Thilo!

So the problem with compiling pure markdown is that there is no way to specify whether markdown files are added to layout files, and if so how they fit in. What you can do instead is something like this: https://gist.github.com/jescalan/dafa23a202fd0b5490b5e6ab13a9418a

It's about three extra lines per file, but the flexibility it bring with regard to customizing with html when necessary and working with content blocks and layouts is huge.

Hope this helps!

ο»Ώ