BoltStatic is a fast and reliable Node.js-based static site generator inspired by GoHugo. It leverages the power of modern JavaScript to provide an efficient and flexible platform for building static websites. Whether you're a developer, content creator, or hobbyist, BoltStatic offers the tools you need to create high-performance, SEO-friendly websites with ease.
- Templating System: Utilize Handlebars for simple and reusable components.
- Markdown Support: Write content in Markdown with built-in parsing.
- Asset Management: Efficiently handle CSS, JavaScript, images, and other assets.
- Plugin System: Extend functionality with a flexible plugin architecture.
- Theming: Customize your site with simple HTML templates and themes.
- Performance Optimized: Built with speed and efficiency in mind.
- Internationalization (i18n): Support for multiple languages.
- SEO Plugins: Enhance your site's visibility with SEO optimization plugins.
- Live Reloading: Develop with a local server that supports live-reloading.
- Extensive Documentation: Comprehensive guides and tutorials to get you started.
- Node.js: Ensure you have Node.js (v14 or later) installed. You can download it from Node.js Official Website.
npm install -g boltstatic
boltstatic new my-website
cd my-website
Start a local development server with live-reloading:
boltstatic serve
Access your site at http://localhost:3000
Generate the static files for production:
boltstatic build
The generated site will be available in the dist/
directory.
boltstatic new page about
This command creates a new Markdown file in the content/pages/
directory.
boltstatic new post "My First Blog Post"
This command creates a new Markdown file in the content/posts/
directory.
Customize your site by editing the config.yaml
file in the root directory.
title: "My BoltStatic Site"
description: "A blazing fast static site generated by BoltStatic."
baseURL: "https://www.myboltstaticsite.com"
language: "en"
theme: "default"
plugins:
- seo
- sitemap
BoltStatic supports theming through simple HTML templates. To switch themes:
- Add your theme to the
themes/
directory. - Update the
config.yaml
file to use your new theme.
theme: "my-custom-theme"
Extend BoltStatic's functionality with plugins. To install a plugin:
-
Install the plugin via npm.
npm install boltstatic-plugin-seo
-
Add the plugin to your
config.yaml
.plugins: - seo
Refer to the Plugin Development Guide for detailed instructions on creating your own plugins.
We welcome contributions! Please see our Contributing Guide for more details.
This project is licensed under the MIT License.
If you encounter any issues or have questions, feel free to open an issue on GitHub or join our Discord community.
- Inspired by GoHugo
- Built with Node.js
- Utilizes Handlebars for templating