summaryrefslogtreecommitdiff
path: root/README.md
blob: aea39f1cd26c20acf8f42b99498aa60433c7cecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Stefan Kreutz' blog

This is the source code of my personal website, <https://www.skreutz.com/>.

The source code is hosted on <https://git.skreutz.com/blog.git/>.

## Usage

Build the static website generator:

    $ cabal v2-clean
    $ cabal v2-update
    $ ulimit -Sd $((8*1024*1024))
    $ nice cabal v2-build --jobs
    $ cabal v2-freeze

**NOTE**: GHC needs more than 4GB of memory to build Pandoc.

Print the help text of the custom static website generator:

    $ cabal v2-run exe:site -- --help

Serve a preview of the website at http://localhost:8080/:

    $ cabal v2-run exe:site -- clean
    $ cabal v2-run exe:site -- watch

Deploy the website:

    $ cabal v2-run exe:site -- deploy

Alternatively build the experimental Nix flake:

    $ nix build git+https://git.skreutz.com/blog.git
    $ open ./result/srv/www.skreutz.com/index.html

## License

Except where otherwise noted, content is licensed under [CC BY-SA 4.0](LICENSE-CC-BY-SA-4.0).
The source code is dual-licensed under [MIT](LICENSE-MIT) or [Apache License, Version 2.0](LICENSE-APACHE-2.0).

## Credits

Built with [Hakyll](https://jaspervdj.be/hakyll/) and [Pandoc](https://pandoc.org/).
Generated by cgit. See skreutz.com for my tech blog and contact information.