https://github.com/ruuda/blog
My personal site
https://github.com/ruuda/blog
Last synced: about 1 year ago
JSON representation
My personal site
- Host: GitHub
- URL: https://github.com/ruuda/blog
- Owner: ruuda
- License: gpl-3.0
- Created: 2014-07-24T19:52:57.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T20:34:18.000Z (over 1 year ago)
- Last Synced: 2025-03-29T20:03:53.775Z (about 1 year ago)
- Language: Haskell
- Homepage: https://ruudvanasseldonk.com
- Size: 19.6 MB
- Stars: 129
- Watchers: 7
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Blog
====
This is the source code for [my personal site][ruudva]. It is a static site
generated by a homemade generator written in Haskell.
The generator includes a tiny templating engine, an html and css minifier, and
an aggressive font subsetter. One of my objectives was to cut all the crap
(which almost by definition includes javascript) without compromising on
design. An average page of my site weighs less than jQuery alone (which
describes itself as “lightweight footprint”). That includes webfonts.
This is version three of my blog. Previously I used [Hakyll][hakyll] (available
in the `archived-hakyll` branch), and before that I used [Jekyll][jekyll].
[ruudva]: https://ruudvanasseldonk.com
[hakyll]: http://jaspervdj.be/hakyll/
[jekyll]: http://jekyllrb.com/
License
-------
The source code for this site is licensed under version 3 of the the
[GNU General Public Licence][gplv3]. See the `licence` file. The content of the
posts is licensed under the [Creative Commons BY SA][cc] licence. For the font
license details, see the readme in the fonts directory.
[gplv3]: https://gnu.org/licenses/gpl.html
[cc]: https://creativecommons.org/licenses/by-sa/3.0/
Compiling
---------
All dependencies are available in a [Nix][nix] ≥ 2.14 development environment
that you can enter with
$ nix develop --command $SHELL
This will bring a `python3` on the path with the right requirements for font
subsetting, as well as the blog generator itself, and tools for compressing
images.
The generator gets built as part of the development environment, but you can
also compile it manually with GHC if you like. Then build the site (requires
fonts to be present):
$ ghc -o blog src/*.hs # Optional
$ blog
[nix]: https://nixos.org/nix/