Allow different layouts for different pages
This commit is contained in:
parent
78e2506d34
commit
d2c7ec794b
3 changed files with 83 additions and 38 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue