Ask HN: What is setup for your static blog generator?
41–50 of 98 posts
Re: Ask HN: What is setup for your static blog generator?
#42add a plugin from the repo "simply static" - generate the html files.
download, then ftp.
It's not elegant and lean like the others - but it's saved me a ton of time for the use cases I've used it for.
There is another decent static generator in the repo, but it failed on a recent site I was trying yesterday, so it's not on my currently using list.
I know it's possible to put wp dynamic files on a server and use a domain mapping plugin to generate files for a bunch of domains on the same server easily - could probably find someone smarter than me to add in this simply static plugin and mod it to shoot the files to the sub domains...
then just install a bunch of themes and other plugins to the main install - and might be kind of heavenly for a lot of situations.
Some of my wp sites need contact forms - so I'm leaving those live / dynamic. If it was easier to make and upload something like the coffee cup form builder files I'd convert a few more sites to static files this week.
If someone found a way to use the wordpress themes with these other generators it would be awesome. Then it would just be the few sites that need the extra plugins power that really need the wordpress php files and such. One can dream.
Re: Ask HN: What is setup for your static blog generator?
#43Re: Ask HN: What is setup for your static blog generator?
#44So I made my own tool.
With this tool (which I dubbed ‘Wabi’) you put a bunch of files in a folder and the files are processed and copied to a corresponding location in an output folder.
Files with metadata at the top are processed specially and can be used as templates or to write markdown files that are turned into pages.
Wabi helps you setup Git integration so that when you run the “publish” command all local changes are immediately published to your website. I didn’t want to mess around with git stuff most of the time so I implemented that command so I could publish iteratively and quickly.
Wabi is sort of my answer to wanting control over how I build my website, while also wanting a tool that does not get in the way of the creative parts of making and running a website.
That said, it’s of no use to you because it’s completely undocumented and not polished, but probably over the next few months I’ll fix it up as I use it to create my own personal website. For those interested you can check out the source (it’s written in Go): https://github.com/kettle11/wabi
Re: Ask HN: What is setup for your static blog generator?
#45¹ Manual: https://heerdebeer.org/Software/markdown/pandocomatic/ ² https://pandoc.org/
Re: Ask HN: What is setup for your static blog generator?
#46* Code snippets with syntax highlighting * Embed the results of computations like plots * Mathematical figures * Bibliographic citations * Footnotes
Wrote about it (https://curious.observer/articles/a-modern-blog/), but didn't get to "blogging" until now :)
Re: Ask HN: What is setup for your static blog generator?
#47What has worked best so far is Org publishing. The reasons I prefer it are primarily that
1. The Org file format is olain text, easily edited on the phone and generally great.
2. I can embed source code in many different languages and have it execute during publishing and embed its results in the document. This can be used both for a "Python notebook" style document, and to programmatically generate things like markup!
3. I can write a single coherent document and then slice it different ways to publish one technical manual as PDF, one summary blog post, and some slides with key points -- all from the same source material.
4. The publishing process is very hackable, so customizations are easy.
(Of course, you don't have to use Emacs as your editor, you can just create a git hook or alias to run Org publish in shell script mode.)
Re: Ask HN: What is setup for your static blog generator?
#48Re: Ask HN: What is setup for your static blog generator?
#49Netlify is like Heroku for static sites. You can connect Netlify to GitLab (free private repos), and Netlify will build and deploy your site when you git push. I also use the Netlify nameservers for many of my domains, and it's really easy to set up SSL with Let's Encrypt. I can buy a domain on Namecheap, and have a new blog or landing page deployed in less than 5 minutes.
Re: Ask HN: What is setup for your static blog generator?
#50I am using pandocomatic¹ to generate my website. It uses pandoc² to convert all kinds of input files to HTML output and pandocomatic is controlling that conversion. Applying it to a directory it converts, copies, or skip everything recursively given a flexible templating system. In the end, it gives me total control over the output and I have started using it for all my websites. ¹ Manual: https://heerdebeer.org/Soft…