Fix format

This commit is contained in:
Andros Fenollosa 2021-07-31 01:31:13 +02:00
parent da46864b9b
commit 2e9846a22c
1 changed files with 7 additions and 8 deletions

View File

@ -1,11 +1,11 @@
(ns rsspaper.html
(:require
[clojure.java.io :as io]
[rsspaper.config :refer [config]]
[rsspaper.feeds :refer [get-articles]]
[selmer.parser :as s]
[me.raynes.fs :as fs]
[me.raynes.fs.compression :as fsc]))
[clojure.java.io :as io]
[rsspaper.config :refer [config]]
[rsspaper.feeds :refer [get-articles]]
[selmer.parser :as s]
[me.raynes.fs :as fs]
[me.raynes.fs.compression :as fsc]))
(defn copy-uri-to-file [uri file]
(with-open [in (io/input-stream uri)
@ -29,8 +29,7 @@
(selmer.parser/set-resource-path! path-theme)
(with-open [writer (io/writer path-dist-index)]
(.write writer (s/render-file file-index {:title (:title config)
:articles (get-articles)
})))
:articles (get-articles)})))
;; Make static
(copy-uri-to-file (str path-theme zip-static) tmp-static)
(fsc/unzip tmp-static dir-dist)))