Skip to content

Simple yet powerful static site generator written in Rust.

License

Notifications You must be signed in to change notification settings

Quozul/hydrogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydrogen

Hydrogen /ˈhaɪ.drə.dʒən/ is a simple static site generator but powerful just like the hydrogen element.
The aim of the project is to make a fast and easy to use site generator with batteries included. You can find a list of features below.

Documentation

Documentation is available at hydrogen.quozul.dev.
The website is made using this framework and deployed on GitHub Pages. You can view the GitHub Action here.

Installation

Install using cargo:

cargo install --git https://github.com/Quozul/hydrogen.git

Usage

Here is a example command to get you started:

hydrogen build --input docs

Features

Checked features are implemented, others are planned in order of priority.

  • Templating using Handlebars
  • Page creation in markdown or HTML
  • Simple CLI usage
  • Looping over all directories from a template (to improve)
  • SCSS/SASS support
  • Custom Handlebars' helpers written in rhai
  • Automatic HTML meta tags generation in <head> inspired by jekyll-seo-tag
  • Assets optimization
    • HTML and CSS minification (to improve)
    • Rename assets using a hash for better caching
    • Image compression
    • Remove unused classes from CSS
  • Docker images
  • Use Handlebars' partials in markdown pages
  • Integrated web server
    • Development server with hot reload
    • Low footprint production-like server
  • Building performance (only if it gets too slow on single thread)
    • Incremental building
    • Multithreaded building
  • Everything the future holds…

About

Simple yet powerful static site generator written in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages