|
|
|
@ -40,10 +40,6 @@ |
|
|
|
:rel "stylesheet" |
|
|
|
:rel "stylesheet" |
|
|
|
:type "text/css"}] |
|
|
|
:type "text/css"}] |
|
|
|
[:link {:rel "stylesheet/less" :type "text/css" :href "/style.less"}] |
|
|
|
[:link {:rel "stylesheet/less" :type "text/css" :href "/style.less"}] |
|
|
|
; google analytics code should appear in prod mode only |
|
|
|
|
|
|
|
(if-not (dev-mode?) (include-js "/js/google-analytics.js"))] |
|
|
|
|
|
|
|
[:body content |
|
|
|
|
|
|
|
; we only need JS during a new note creation, so don't render it otherwise |
|
|
|
|
|
|
|
(html |
|
|
|
(html |
|
|
|
(include-js "/js/less.js") |
|
|
|
(include-js "/js/less.js") |
|
|
|
(include-js "/js/md5.js") |
|
|
|
(include-js "/js/md5.js") |
|
|
|
@ -57,7 +53,10 @@ |
|
|
|
'@foreground_halftone': themes['" theme "'].foreground.halftone, |
|
|
|
'@foreground_halftone': themes['" theme "'].foreground.halftone, |
|
|
|
'@link_fresh': themes['" theme "'].link.fresh, |
|
|
|
'@link_fresh': themes['" theme "'].link.fresh, |
|
|
|
'@link_visited': themes['" theme "'].link.visited, |
|
|
|
'@link_visited': themes['" theme "'].link.visited, |
|
|
|
'@link_hover': themes['" theme "'].link.hover});")))]))) |
|
|
|
'@link_hover': themes['" theme "'].link.hover});"))) |
|
|
|
|
|
|
|
; google analytics code should appear in prod mode only |
|
|
|
|
|
|
|
(if-not (dev-mode?) (include-js "/js/google-analytics.js"))] |
|
|
|
|
|
|
|
[:body {:onload "loadPage()"} content]))) |
|
|
|
|
|
|
|
|
|
|
|
(defn layout |
|
|
|
(defn layout |
|
|
|
"Generates the main html layout" |
|
|
|
"Generates the main html layout" |
|
|
|
|