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

          (update-in response [:headers "Content-Type"] #(str % "; charset=utf-8"))
          response)))))

(def server (-> (stasis/serve-pages public-pages)
                (optimus/wrap
                  public-assets assets-optimizations/all assets-strategies/serve-live-assets)
                ring.middleware.content-type/wrap-content-type

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

;;; Site builder

(defn lang-routes []
