What do you recommend for a static site gen in Clojure? I found this https://github.com/cryogen-project/cryogen, wondering what people's thoughts are
May I suggest...
find . -type f -name "*.md" |
# you can use babashka instead of pandoc
#
xargs -I{} -P4 pandoc -f markdown -t html {} |
# the dash splices input stream to cat at the point of the dash
cat head.html site-menu.html - site-footer.html foot.html i use cryogen, lots of folks use #quickblog
I use Cryogen for my own blog and for http://clojure-doc.org
I used Cryogen for several years and it was very good to use. I also created a custom theme pretty easily, by editingnthe html templated & CSS. I did a minor tweek to the Clojure code to pass a test config, so I could easily deploy changes to a test site. Other than that, it wasnt relevant that it was written in Clojure.
@jr0cket a few years ago, I went with Gatsby for a blog because it's what was most popular at the time, but after about 1.5 years of not touching it, the NPM ecosystem+Gatsby itself had left my version in a completely broken state. While it may not matter if the backing language is in Clojure, I am kind of hoping the no breaking changes and no abandonware philosophy carries forward better than that
The main reason I switched to Cryogen was that my previous Jekyll-based sites all broke without me changing anything. Thanks, Ruby. I have had zero breakage with Cryogen.
https://github.com/scicloj/clay Clay is pretty different from other static website generators in that it gives you something really powerful that other static website generators don't have: the ability to evaluate Clojure code to produce the contents of a page! Worth checking out.
I would also take a look at https://github.com/cjohansen/powerpack and its introductory tutorial https://github.com/cjohansen/powerblog