|
1 year ago | |
---|---|---|
site | 1 year ago | |
src | 1 year ago | |
templates | 1 year ago | |
.gitignore | 1 year ago | |
ChangeLog.md | 3 years ago | |
README.md | 2 years ago | |
Setup.hs | 3 years ago | |
chaoszone.cabal | 2 years ago | |
default.nix | 1 year ago | |
newpost.sh | 2 years ago | |
shell.nix | 1 year ago |
The source files for the https://chaoszone.cz website.
This site is built using Hakyll. To be able to build and run this, you need to install the following:
To write new posts just invoke newpost.sh
. This will guide you through the
process.
After you have written and saved the new post, add the post (you can find it in
site/posts/
) to the repo, commit and push it.
After cloning the repo and changing into the repo directory, you can invoke
nix-shell shell.nix
to build a shell with all dependencies in it. After that, you invoke
cabal new-run -- chaoszone build && cabal new-run -- chaoszone deploy
to build the static sites and eploy them in one step.
After cloning the repo, you change into the directory and invoke
cabal new-update
to initialize your cabal package repository list. After that you can run
cabal new-run -- chaoszone build && cabal new-run -- chaoszone deploy
to build the static sites and eploy them in one step.
For altering the building process, you may edit the src/Main.hs
file. To
actually see your results, contact me at nek0@nek0.eu so I can rebuild the
executable for the static site generator.