Bill Ewanick ae99c57592 | ||
---|---|---|
.vscode | ||
.envrc | ||
.gitconfig | ||
.gitignore | ||
README.md | ||
flake.lock | ||
flake.nix |
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/
-
devops/
-
build.sh
- Uses a nix-shell expression to build the Hakyll executable
-
configuration.nix
- The configuration file for the NixOS production server. This takes care of installing all the necessary software, setup Nginx, and get ACME certs for verification.
-
newSealPost.sh
- Script to be called daily by a cron job on the server. Generates the post for the day, builds and commits.
-
-
dist/
- Place for the Haskell build artifacts to go.
-
generate/
- generateSealPosts.hs
- A Haskell script that checks the website/posts folder and creates a blog post for every day from 1998 until the current date. There you will find the adjective lists if you think of more words to describe seals.
- generateSealPosts.hs
-
website/
- A basic Hakyll site, slightly modified to serve seals. Most of the site is generated from the
site.hs
file. Check the Hakyll documentation for more info.
- A basic Hakyll site, slightly modified to serve seals. Most of the site is generated from the
These seals need more adjectives
In generate/generateSealPosts.hs you'll find two lists of adjectives. Submit a pull request to add more. Or email me at admin AT cutesealfanpage.love