8000 GitHub - tracefree/scrigen: Bespoke static site generator for my personal blog, written in Rust
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tracefree/scrigen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scrigen

This is a small, bespoke static site generator for my gamedev blog, Invariance, written in Rust. It takes blog posts in the form of markdown files as input and generates the corresponding HTML file (including syntax highlighting support for code blocks), the corresponding entry on the landing page, and an Atom feed. Currently it's tightly coupled to my HTML and CSS file structure, doesn't handle errors gracefully, and is undocumented, so there's no reason to use this over any other static site generator. Just releasing the source in case anyone is curious about how my site works.

Screenshot of my blog showing a sidebar next to the article content with links to each section and a code block with proper syntax highlighting. The article talks about the script template feature of Godot.

Crates used

  • Serde and ron, for reading metadata
  • markdown, for converting Markdown to HTML
  • inkjet, for syntax highlighting
  • regex, for working around a limitation of the above, where GDScript symbols + - < > / * : [ ] { } ( ) aren't differentiated
  • atom_syndication, for generating the Atom feed
  • chrono, for sorting posts by their publishing date
  • convert_case, for, uh, converting case

License

Your choice of either Apache 2.0 or the MIT license.

About

Bespoke static site generator for my personal blog, written in Rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages

0