Skip to content

Instantly share code, notes, and snippets.

@deadghost
Created August 27, 2014 17:43
Show Gist options
  • Save deadghost/3f205c3471dc401e7026 to your computer and use it in GitHub Desktop.
Save deadghost/3f205c3471dc401e7026 to your computer and use it in GitHub Desktop.
(defhtml base-html
"Function produces an enlive HTML hash-map of the base HTML. This hash-map is
used as a base template for other HTML definitions."
[site-title]
[:html
[:head (map include-css ["/css/reset.css"
"/css/main.css"])
[:meta {:name "robots"
:content "noindex"}]]
[:body
[:div {:id "wrap"}
[:a {:href "/"}
[:h1 {:class "site-name"} site-title]]]]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment