{"repo":"rpearce/hakyll-nix-template","free":true,"listed":false,"github":"https://github.com/rpearce/hakyll-nix-template","clone":"git clone https://github.com/rpearce/hakyll-nix-template.git","description":"Hakyll + Nix starter template","language":"Haskell","stars":64,"topics":["hakyll","nix","template","haskell","static-site-generator","hacktoberfest"],"license":"BSD-3-Clause","category":"docs-static-sites","readme_excerpt":"hakyll-nix-template Hakyll + Nix template Quick tips Read the tutorial to get started! https://robertwpearce.com/the-hakyll-nix-template-tutorial.html All build inputs (GHC, Hakyll, pandoc, ...) come prebuilt from the default NixOS binary cache, so a fresh clone builds without compiling the toolchain from source and needs no extra substituter setup. If you make changes to anything inside of ssg/ , you'll need to clean the hakyll cache and rebuild. This is the preferred series of commands for rebuilding (with logs), cleaning the cache, and re-running the dev server: Features Build your site into the ./result/dist folder: Start hakyll's dev server that reloads when changes are made: Run any hakyll command through nix run . ! Start a development environment that has your shell environment has hakyll-site (for building/watching/cleaning hakyll projects) has hakyll-init (for generating new projects) can have anything else you put in the shell.buildInputs of the hakyllProject in flake.nix is set up to run ghci with some defaults and the modules loaded so you can make your own changes and test them out in the ghci REPL hakyll All of this is customizable, and here are some things that are already done for you: pandoc markdown customization to make it as close to GitHub's markdown style as possible slugger module is included that makes nice link URIs based on post titles RSS & Atom XML feed generation Sitemap generation Code syntax highlighting customization HTML output minification C","default_branch":null,"files":null,"tree":[],"storefront":"/r/rpearce","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rpearce/hakyll-nix-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}