Allow different layouts for different pages

This commit is contained in:
heyarne 2021-07-30 09:43:45 +02:00
commit d2c7ec794b
3 changed files with 83 additions and 38 deletions

View file

@ -12,7 +12,7 @@
# build config
# ---
(def base-path "/")
(def base-url "/")
(bagatto/set-output-dir! "site")
# ---
@ -42,7 +42,7 @@
post))
(defn absolute-url [path]
(string base-path path))
(string base-url path))
(defn files-in [base]
(fn []
@ -70,7 +70,7 @@
# ---
(def data {:config {:attrs {:title "arnes.space"
:base-path base-path
:base-url base-url
:stylesheet (absolute-url "assets/style.css")}}
:assets {:src (bagatto/* "assets/*")
:attrs bagatto/parse-base}