   (prepare-pages (get-basic-pages)))
 
 (def app
-  (optimus/wrap (stasis/serve-pages final-pages)
-                get-assets
-                optimisations/all
-                serve-live-assets))
+  (-> (stasis/serve-pages final-pages)
+      (optimus/wrap get-assets optimisations/none serve-live-assets)
+      (wrap-default-charset "UTF-8")))
 
 (def export-dir "dist")
 


(defn get-basic-pages []
  (stasis/merge-page-sources
   {:templated-pages (content->pages (stasis/slurp-directory "resources/fragments" #".*\.html$"))
    :templated-hiccup (meta-posts->page-map posts)
     ;; :templated-js-pages (js-content->pages (stasis/slurp-directory "resources/cljspages" #".*\.html$"))
     :markdown-pages (markdown->pages (stasis/slurp-directory "resources/markdown" #".*\.md$"))}))

(defn prepare-page [page req]
  (-> (if (string? page) page (page req))

(defn meta-post->page-loc
  "Convert a meta-post to a pair of a HTML page and a URI fragment. See omhome.meta-post/empty-post for a default post structure."
  [meta-post]
  [(meta-post :post-url)
   (fn [req] (layout-page req (read-string (slurp (:post-filepath meta-post))) meta-post))])

(defn meta-posts->page-map
  "Convert a vector of meta-posts into a map of URI fragment and HTML page pairs, suitable for inclusion in Stasis' page map."
  [meta-posts]
  (into {} (map meta-post->page-loc meta-posts)))

;; rework the stasis map of filenames to source content created using markdown to use paths and html
(defn markdown->pages [markdown-content]
