Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hey! This really piqued my interest, could you explain more about the makefile part of this? I currently use Pandoc to convert a folder of .MD files into .HTML files with the same name, and have begun modifying the templates and making use of the YAML metadata you can add. I really like working with markdown like this, and it's perfect for Git.

Here's an example of the kind of build script I use currently: https://github.com/tomhodgins/responsive.style/blob/master/s...

How would you build the contents of the /src folder with pandoc and your makefile?

Edit: for those looking for an example of the result of one of my Markdown -> Pandoc -> Git -> Static Hosting workflows, check out this page:

- Static HTML: https://responsive.style/techniques/child-element

- Markdown Source: https://raw.githubusercontent.com/tomhodgins/responsive.styl...



Here is a post I made (and generated) about my generator: http://flukus.github.io/building-a-blog-engine.html

It's pretty similar to your shell script but builds are incremental with no extra work. I went with awk for index generation and metadata. There's still plenty of room for improvement but it does most of what I want.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: