Ask HN: What is setup for your static blog generator?
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.
97 comments
[ 3.2 ms ] story [ 121 ms ] threadHere's the git repo https://github.com/snehesht/blog
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.
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".
I'm currently writing a post detailing how all of this works, for anyone interested.
Yes please. I need to support localisation on a site I maintain, and for that will need one (or more) plugins that github don't support so would be interested in your setup.
https://abhi.keybase.pub/2016/02/15/git-and-keybasefs.html
The general gist is that keybase.io is promising that it will only serve data at abhi.keybase.pub that has been signed for by that user.
https://github.com/sumdog/jekyll-multisite
There are open issues and pull requests for the plugin. I started building a test suite so I could start doing tests against multiple Jekyll versions and make it more universal, but it currently fails tests even with the same Gemfile/lockfiles.
Currently I have to keep my site pegged to Jekyll 3.0.1 because of all the custom plugins I've written, and think Jekyll-multisite might be tied directly to my build. :( I've put little effort into it lately since Jekyll themes are suppose to address the multi-site capabilities. I just keep it building a a docker container so I can use the older version without trouble.
I have that nginx container running behind the official HAProxy container and have Certbot running in its official container as well. I have a guide on how to set this up including all the Dockerfiles on github that you can use and modify:
http://penguindreams.org/blog/bee2-automating-haproxy-and-le...
As you can see, my blog isn't on the new setup yet (no https/letsencrypt). I'm working on that though, and hope to have it all migrated over this week.
I would NOT recommend Jekyll if I was starting again. I had to do a lot of hacking and custom ruby coding to get really basic things I wanted working. Under the shell of Jekyll is a huge mess. It likes to iterate over things .. a lot .. all the time, for everything. Lots of the path resolution stuff is broken and lots of Jekyll is built around github pages, making some things impossible without violating the security model.
https://github.com/lucaspiller/hugo-privacy-cactus-theme
I wanted a minimalist theme that's fast to load, but a lot of commonly cited examples are too extreme or look too dated for my liking. I wanted the same results, but something a bit more up to date and with code highlighting. You can see the end result on my blog (total network transfer 78kB):
http://www.stackednotion.com/blog/2016/07/09/setting-up-a-ne...
* https://ghost.org/
* Kickstarted in 2013
* Markdown-based
* Open source, self-hostable
* Hosted solution (https://ghost.org/pricing/) with support for your own domain name
* Beautiful themes out of the box with custom css/js on an article, site-wide or theme level
* Third party static site generation tools (https://github.com/axitkhurana/buster/, https://github.com/lexoyo/static-ghost)
Example blog (default theme): https://blog.ghost.org/
I self host on the lowest Digital Ocean droplet which is now $5/mo and is plenty for my small time blog and I'm happy to pay $5/mo for the delight of using Ghost. Also with a cron job I can auto-update every few days and get the latest features without touching the box.
Ghost will auto-roll back if an update fails which is nice and I don't have that many viewers so if it goes down I don't mind so much right now.
A final bonus is that it uses handlebars for it's theme creation and rendering. I'm a node dev who uses handlebars for my own projects so editing my theme is a breeze.
Jekyll really does give you full control. It also powers some pretty large websites. Breitbart.com and Forthepeople.com (shameless plug) spring to mind.
I would use VSTS for the whole pipeline, including the Git repository hosting, but I wanted to have a public repository, in case listeners wanted to submit pull requests. So far that hasn't happened, so I'm missing out on some of the VSTS features, but maybe it still will.
I also have a weekly newsletter (https://developertoolsweekly.com/) that uses a static site generator that I build myself. It's very Jekyll-inspired and uses Liquid templates, but instead of generally processing markdown, it takes a simple list of links and descriptions and emits a website as well as the HTML and plain text for the emails.
This workflow is similar, the generator is run in a Docker container, but this workflow is entirely VSTS and Azure.
No "configuration". All code. You have to assemble the libraries from npm to make anything useful out of it though. Good luck.
Less code and configuration makes it easy to add custom features; I stuck incremental rebuilds and hot reloading into my blog while keeping it below 70 LOC:
https://github.com/1wheel/roadtolarissa/blob/master/index.js
http://mulholland.xyz/docs/ivy/
I use it for all my sites now.
we choosed this setting because we wanted the content-heavy parts in an easy to handle CMS (from a editor perspective). We wanted to integrate the content in our main webshop and not with a subdomain and between our main header and footer coming from our main webshop system (sap hybris).
show hn: https://www.blue-tomato.com/blue-world/