Ask HN: What's your favorite flat file blog?
A few years ago, I started a blog and decided to use flat files. I used Node/Gulp to create a simple system that used the directory structure and JSON files to create the post structure. It worked OK, but I haven't updated the blog in a while and moved to a new computer, and now nothing builds. I now want to start a different blog and would like to go with a similar approach.
Ideally, I would like the following: - A flat file blog that I can maintain on my desktop and publish to Github, maybe support comments via a service Disqus. - Pick between Markdown, HTML or a WSYWYG editor to update posts. - Prefrably not PHP based.
17 comments
[ 3.8 ms ] story [ 47.1 ms ] threadIt’s so simple and easy. If you want to focus on content instead of tinkering with your blog endlessly (like I have done several times), this is a great option.
Not seeing an option right off bat to do this with Bear Blog, but I will poke around. Thanks!
More info here: https://github.com/HermanMartinus/bearblog/wiki/Custom-domai.... Btw I believe the dev is working on improving this right now.
It turns out I was more interested in researching the options / playing with them than actually writing
publishing with git: https://neurobin.org/docs/web/using-git-to-manage-a-website
My posts are in Markdown files, and I write them using either my text editor or Typora, which is a little more WYSIWYG and makes adding images so much easier.
Hugo's archetypes feature is great: running `hugo new posts/title.md` quickly scaffolds a new post based on a template from a Markdown file, with frontmatter entered already, and then opens that Markdown file in Typora, ready to start writing (you can add your editor in Hugo's config). While it wouldn't be too difficult to make a script that does this, I loved having this out of the box.
i use that to render markdown to html with a tiny scaffold:
https://github.com/nathants/render
It’s PHP based, but content is all stored as markdown with optional front-matter.
You can see it at https://Ted.dev, though I still have lots of work to do to make it more than just a list of articles.