An introduction to Static site generators
The Static site generators are set of tools that can generate static HTML files from our content with some template files. Then we can host these static files and use it as a static website / blog.
Even if we are comfortable in CMS / blog engines, occasionally we want some minimal alternative or light weight solutions. The static site generators are usable as an alternative in such situations.
The static site generators are application to be installed in our computer. We want to write content in special & easy formats like Markdown & textile etc. These contents are live in a special folder in project directory in our computer. We can add image, video etc in post like this same way.
In our project directory, we need some template files and configuration file. These template files decide look and feels of our website / blog. The configuration file determine how our content to be converted in to static web pages.
Then we want to generate our website(HTML files) using static site generator. After generating HTML files, we can host them as regular static websites.
Next time, when we want to publish a new article, we want to follow the same steps. First, we want to create a new article in our content folder with old articles. Then again generate HTML files using static site generator and host them.
Additionally we can use functionality like Pagination, Permalinks, Tagging, categorization, commenting system and syntax highlighting etc in some of these static site generators.
If you like to test and build your website / blog with a static site generator, you can find a great list at here.
- Action hooks that trigger on, before or after add, update or delete actions of option - WordPress
- Get all variations of a variable product - WooCommerce
- Generate random string - Python
- Split domain from an email address - Python
- Get upcoming N days - PHP
Your Questions / Comments
If you found this article interesting, found errors, or just want to discuss about it, please get in touch.