stelcodes / nuzzle

A functional static site generator so smol you won't even notice it's there 🐈
Eclipse Public License 2.0
17 stars 1 forks source link

Merge `:nuzzle/page-key` and `:nuzzle/url` values #135

Closed stelcodes closed 2 years ago

stelcodes commented 2 years ago

Simplify the URL data by making the [:blog-posts :foo] format the only URL format used in the config data. Basically don't put the string URL in the config data ever. Advertise the page-key->url function to convert it. But ultimately I want to allow the user to use that URL format directly in hiccup like [:a {:href [:blog-posts :foo]} "Blog Posts"] and write a hiccup postprocessor using clojure.walk/postwalk that converts the vector into a string. Alternatively I could fork the Hiccup generation library I'm using for perf improvement if I really feel like it later.