What's the fastest way to start a blog? Wordpress? Jekyll? Any one of the hundreds of static site generators out there?
Nah, it's pandoc and now....
For further actions, you may consider blocking this person and/or reporting abuse
Excellent post! Here's the oneliner bash loop ;)
The
$(basename ${POST%.md}).html
strips out the .md file extension, and also removes the directory path (helpful if your posts are stored in a folder). I found this stackoverflow question a helpful guide.I'd also recommend eleventy as a no nonsense static site generator.
Not seen the
basename
trick before - very, very nice.I have considered Pandoc (it's great, I use it to generate my resume), but in the end I decided to write my own static site generator, also because I want a single input file (Markdown-ish). I use it to generate Plurrrr, a tumblelog.
Pandoc really is an amazing gift to the open source publishing community.
It does so much.
For instance the book I'm working on is also written in markdown and it's so simple to create a epub files github.com/quii/learn-go-with-test... and pretend you're a real author.
Thanks for the great post. Pandoc is pretty fun and simple.
A few edits :
instead of
instead of
Publish in haste - regret at leisure!
I'll make the changes - thanks!
I love this! I've never used pandoc, gonna check it out now!
I cracked up 😂
Thanks David!
Thanks Anna - that made my day!
Have you tried Netlify?
No - tell me about it!
Its made specifically for hosting static sites, but it can have forms 😮. I hear it also makes working with AWS lamda functions a bit easier, although I haven't tried that yet.
You can use Github, Gitlab or Bitbucket and it will update the site with every merge.
I've personally only used it for single-page HTML websites, but I hear it integrates nicely with static site generators.
And it has a generous free tier :)
So, build your own hugo out of seemingly conveniently shaped pieces?
Yes. Unix programming philosophy at work.
What's about Pandoc's performance speed compared to Hugo?
Good question! Maybe I'll benchmark it - or you could! 😁
Couldn't wait about the benchmark result.
I have used the SimpleHTTPServer module of python instead of now for local testing.