Go to file
Bill Ewanick 922efcac5e Update to latest sealPostGenerator 2023-09-26 09:50:23 -04:00
.vscode minor updates 2023-04-19 18:42:09 -04:00
css Move out of website folder 2023-08-08 17:53:07 -04:00
images Add back images 2023-08-12 10:22:27 -04:00
templates Move out of website folder 2023-08-08 17:53:07 -04:00
.envrc Add flakes 2023-04-10 19:42:25 -04:00
.gitconfig Daily blog update 2020-09-10 03:15:15 +00:00
.gitignore Add posts to the .gitignore, change the config start data 2023-09-21 14:20:52 -04:00
README.md Update README 2023-09-22 13:57:54 -04:00
about.rst Move out of website folder 2023-08-08 17:53:07 -04:00
config.dhall Add posts to the .gitignore, change the config start data 2023-09-21 14:20:52 -04:00
contact.markdown Move out of website folder 2023-08-08 17:53:07 -04:00
flake.lock Update to latest sealPostGenerator 2023-09-26 09:50:23 -04:00
flake.nix Removing a problem with building on different machines 2023-09-21 14:17:03 -04:00
index.html Move out of website folder 2023-08-08 17:53:07 -04:00
site.hs Move out of website folder 2023-08-08 17:53:07 -04:00

README.md

Cute Seal Fanpage

An experiment using Nix, Hakyll, Haskell, and shell scripts to automate a simple website deployment pipeline.

Why Seals?

It's an in-joke.

What's all this code?

seal-blog/

  • flake.nix
    • The specification for everything is repo can do.
    • Defines the hakyll site build instructions, as well as sets it as an app to be run with nix run .#hakyll-site.
    • Defines the blog generation command as an app to be run with nix run .#generateSealPosts.
    • Creates a shell with the same ghc installed, as well as other haskell tools.
      • For use with nix develop . or direnv
  • site.hs
    • The hakyll blog is defined here.
    • Pulls in the rest of the files in this repo and creates a static site at _site.
  • config.dhall
    • The config file for the blog generation, run with nix run .#generateSealPosts.
    • Uses a pseudo random number generator, change the seed to see different outputs in the postsOutputPath (default ./posts/).
  • The rest of the code is related to the static hakyll site itself.
    • I've tried putting it in it's own src or website folder but
      • it feels like needless refactoring
      • I can't get the flake operations to work :(