summaryrefslogtreecommitdiff
path: root/README.md
blob: 25444437850bbcd52310e98e3c8d6cfaba2338f8 (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
# Stefan Kreutz' blog

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

This project's original source code is hosted
[here](https://git.skreutz.com/blog.git/).

## Usage

Build the static website generator. Note that GHC needs more than 4GB of memory
to build Pandoc:

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

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

## 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.