Live data from Hacker News

Ask HN: What is setup for your static blog generator?

news.ycombinator.com

1–10 of 98 posts

Ask HN: What is setup for your static blog generator?

#1
I have tried Jekyll, Hexo and few other static blog generator but not happy with theme. I want to build something in which I have total control. Like I have few scss/css files, few markup files and some other templates for design and based on them I can create a complete html files so that I can publish them on GitHub.

Many of you might have some scripts that generate your blog posts from some setup. If it is possible then can you share your setup configuration?

I am looking for following things with setup:

* I should have backup of my all posts if I want to move other other configuration. * I can easily tweak css or html. * I can generate a complete html blog that can be publish over GitHub or any other places.

Re: Ask HN: What is setup for your static blog generator?

#6
I use Hakyll, which is a Haskell clone of Jekyll. I wouldn’t recommend it unless you are already proficient in Haskell and Haskell is your favorite language, but it does give you total control: write a few markdown files, your own HTML templates, your own CSS, etc.

Re: Ask HN: What is setup for your static blog generator?

#7
This will probably forever be too half-baked to "release", but I wrote my own: https://github.com/jakelazaroff/adjective

It's written in Node and features multithreading and incremental builds for fast development.

I host on Netlify, which has continuous integration built in, so it builds and deploys the site every time I push to GitLab.

Re: Ask HN: What is setup for your static blog generator?

#9
Github pages + Bash + Python script. I have a very simple page layout for posts. A drafts directory maintains ASCIIDoc files for posts I'm writing.

After writing I run `post.sh` with the file as the argument. It invokes a Python script which generates the HTML and puts it in a directory for published posts sorted by date/month/year (e.g. published/2018/01/29). The Bash script generates a directory/link listing and an index page for the blog roll, followed by a "git push".

Re: Ask HN: What is setup for your static blog generator?

#10
I run https://blog.jeaye.com/ on Github Pages, but I manually build with Jekyll locally, with a publish script, and then force push the built site + assets to the gh-pages branch. This allows me to use all sorts of Jekyll plugins which Github won't whitelist.

I'm currently writing a post detailing how all of this works, for anyone interested.

Post reply on HN