It’s much easier to write raw HTML and HTML-to-Markdown than the other way.
Why You Should Write Your Own Static Site Generator
41–50 of 136 posts
Re: Why You Should Write Your Own Static Site Generator
#42The short version: text files let you use powerful tools, not just the WYSIWYG editor supplied with your CMS. Navigating markdown files in Sublime Text is incredibly fast compared to clicking around in a PHP admin area. I can even write blog posts with Obsidian on my phone.
It also means a very simple, very fast server that runs forever without maintenance. You don't need much to serve static files.
Above all, it means source-controlled content and content branches. This is great for big changes that span multiple pages.
Re: Why You Should Write Your Own Static Site Generator
#43I've never understood the point of these things. Just use a solid CMS and cache to s3 or Varnish. What's the big deal?
I prefer using markdown files in a repo and generating my website using a SSG, because I find managing plain text files and a simple CI/CD pipeline to deploy easier to manage. The tooling for writing is my editor of choice, deploy is a git push and I don’t have to run a server or long running process. I can also easily migrate to any type of hosting more easily. I can see someone who is more used to Wordpress for exa…
It uses Git and Markdown for easy deployments to your serverless CI/CD pipeline just as you described.
I'd love your feedback :)
Re: Why You Should Write Your Own Static Site Generator
#44I'm not sure I'd advocate for writing a static site generator, although I'm certainly guilty of writing a few myself. Instead I always encourage people who are trying to start blogging to do the writing first. Figure out a workflow that works for you - what time of day you prefer writing, what editor, do diagrams naturally come up in your thought stream, etc. It's way easier to get this workflow dialed in when you're…
Surely you can learn a lot in the process, but how much time does it need?
It was probably the author's fault to select NextJs for it. Maybe something simpler like gohugo might have been better: the tool is just a binary file, that doesn't require extra dependencies.
Re: Why You Should Write Your Own Static Site Generator
#45Re: Why You Should Write Your Own Static Site Generator
#46Re: Why You Should Write Your Own Static Site Generator
#47Re: Why You Should Write Your Own Static Site Generator
#48I'm not sure I'd advocate for writing a static site generator, although I'm certainly guilty of writing a few myself. Instead I always encourage people who are trying to start blogging to do the writing first. Figure out a workflow that works for you - what time of day you prefer writing, what editor, do diagrams naturally come up in your thought stream, etc. It's way easier to get this workflow dialed in when you're…
If you don't write one, the chance is good, your blog would stay empty.
Re: Why You Should Write Your Own Static Site Generator
#49I'm not sure I'd advocate for writing a static site generator, although I'm certainly guilty of writing a few myself. Instead I always encourage people who are trying to start blogging to do the writing first. Figure out a workflow that works for you - what time of day you prefer writing, what editor, do diagrams naturally come up in your thought stream, etc. It's way easier to get this workflow dialed in when you're…
Then I discovered that for my writing style, org-mode with embedded scripts and plotting code really just works. I don't have to think much and I can focus on just writing. That particular authoring/publishing tool never gets in the way of what I want to express.
So I ended up patching over parts of org-mode to make it my static site generator. Sometimes the best is somewhere in between the extremes.