     (fn [acc param-lang] (into acc {(str "/" param-lang "/") (partial lang param-lang)}))
     {}
     (dictionary/langs-available)))
+
+(def site-pages (merge
+                    {"/" index "/error/" error}
+                    (lang-routes)))
+
+(defn public-assets []
+  (assets/load-bundle "assets/css"
+                      "style.css"
+                      ["/normalize.css" "/skeleton.css" "/main.css"]))
 
 (defn build-assets [assets]
   (as-> assets a

              "Ошибка"
              (html (pict-source.error/page))))

(defn public-assets []
  (assets/load-bundle "assets/css"
                      "style.css"
                      ["/normalize.css" "/skeleton.css" "/main.css"]))

(def public-pages (merge
                    {"/" index "/error/" error}
                    (lang-routes)))

;;; Site builder

(defn lang-routes []

  (let [optimized-assets (assets-optimizations/all (public-assets) {})]
    (stasis/empty-directory! export-dir)
    (build-assets optimized-assets)
    (stasis/export-pages site-pages export-dir {:optimus-assets optimized-assets})
    (add-config-to-build)))

;;; Development server
