Live data from Hacker News

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

news.ycombinator.com

51–60 of 98 posts

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

#51
post #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.

> 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.

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

#52
I wrote my own as I wanted sass + syntax highlighting + a good template engine without having to install Node or similar (https://www.getgutenberg.io/). Not a lot of themes yet so it's better for peopl

In short, I just write my content in markdown, style in Sass and HTML in Tera (https://github.com/Keats/tera/) which is very similar to Jinja2.

I then automatically build & deploy from https://www.netlify.com/ on commits. Netlify will also get built-in support the next time they deploy their build image (ie all you need for your site to be deployed will be a file like https://github.com/Keats/gutenberg/blob/a2b55a927981727ce00a...) like Hugo does.

My own site is a bit difference as I have a DO instance for it but the script is simply copying the public folder to the server and have Caddy serve it.

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

#53
I'm very happy with using pelican for my blog:

https://startuplab.io/blog

It's very flexible, written in python, easy to customize, has plugins for any purpose.

I've made a custom theme, configured pelican a bit, and served with nginx on digital ocean(but it could as well have been served for free on github pages).

You can see the code and my custom theme here:

https://github.com/raymestalez/startuplab

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

#54

I use Hugo, GitLab, and Netlify for blogs and landing pages. I highly recommend this combination. Hugo is blazingly fast and very customizable. It's written in Go, so it compiles hundreds of blog posts in less than a second. My old Jekyll and Octopress blogs used to take a few minutes. Netlify is like Heroku for static sites. You can connect Netlify to GitLab (free private repos), and Netlify will build and deploy yo…

Is it possible to use scss and slim with Hugo? Does it support partials, an equivalent of liquid, investing data files?

These are the things that keep me with Jekyll and middleman.

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

#55

I use Hugo, GitLab, and Netlify for blogs and landing pages. I highly recommend this combination. Hugo is blazingly fast and very customizable. It's written in Go, so it compiles hundreds of blog posts in less than a second. My old Jekyll and Octopress blogs used to take a few minutes. Netlify is like Heroku for static sites. You can connect Netlify to GitLab (free private repos), and Netlify will build and deploy yo…

Is it possible to use scss and slim with Hugo? Does it support partials, an equivalent of liquid, investing data files? These are the things that keep me with Jekyll and middleman.

It doesn't look like Hugo supports scss, so you need to use gulp for that: http://danbahrami.io/articles/building-a-production-website-...

You can run "gulp watch" to compile the files into /static, and Hugo's live reloading will pick up the changes.

I can't find anything about slim templates. "Hugo uses Go’s html/template and text/template libraries as the basis for the templating.": https://gohugo.io/templates/introduction/

It does support partials, and the go templates are similar to liquid.

I honestly don't do much to customize Hugo, I just pick a theme, tweak the CSS, and write some blog posts. If you have a Jekyll blog with a lot of custom Ruby, then it might be difficult to switch.

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

#56
I put together one a week or two ago, it runs pandoc on directories with markdown files in them to generate html, and then generates an atom feed of the md files if any content has been created/updated. html/css can be set in pandoc template, atom feed information from yaml. It barely works but so far it hasn't broken in my normal usages

https://github.com/dxwc/post

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

#59
Using Hugo (https://gohugo.io/) as static generator, hosting everything on Github (take a look: https://github.com/igorkulman/coding-journal), deploying to Netlify (free tier).

There are many good themes for Hugo (https://themes.gohugo.io/), I use Beautiful Hugo.

When writing a new post I: * create a new MD file with the post * commit + push * Netlify takes care of the rest (fetch from Github, deploy)

Post reply on HN