2023-04-19 18:42:09 -04:00
2023-08-08 17:53:07 -04:00
2023-08-12 10:22:27 -04:00
2023-08-08 17:53:07 -04:00
2023-04-10 19:42:25 -04:00
2020-09-10 03:15:15 +00:00
2023-08-08 17:53:07 -04:00
2023-08-08 17:53:07 -04:00
2023-09-26 09:50:23 -04:00
2023-08-08 17:53:07 -04:00
2023-09-22 13:57:54 -04:00
2023-08-08 17:53:07 -04:00

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 :(
Description
No description provided
Readme 16 MiB
Languages
Haskell 26.2%
CSS 20.2%
HTML 18.9%
Nix 17.6%
Dhall 17.1%