...
 
Commits (2)
......@@ -127,7 +127,6 @@ Optimise 200ok.ch on Google Speed Test
https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2F200ok.ch&tab=mobile
**** TODO Use schema.org markup for other pages than the blog
**** TODO Opengraph / Twitter Card
- Opengraph generally works:
......@@ -146,7 +145,7 @@ https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2F200ok.c
**** TODO link from technologies to projects
*** PROJECT Migrate hosting
**** TODO Enable rsync instead of =boot-copy=, again
**** DONE Enable rsync instead of =boot-copy=, again
- Relevant commit: 2f51d98
......
......@@ -12,7 +12,6 @@
[org.clojure/data.json "0.2.6"]
[deraen/boot-sass "0.3.1"]
[fsdb "0.1.1-SNAPSHOT"]
[cpmcdaniel/boot-copy "1.0"]
[camel-snake-kebab "0.4.0"]])
(require '[boot.core :as boot]
......@@ -28,7 +27,6 @@
'[clojure.data.json]
'[clj-http.client]
'[fsdb.core :as fsdb]
'[cpmcdaniel.boot-copy :refer :all]
'[deraen.boot-sass :refer [sass]]
'[clojure.string :refer [split]]
'[clojure.java.shell :as shell])
......@@ -56,10 +54,6 @@
(apply shell/sh (split cmd #" "))))
(task-options!
copy {:output-dir "target/public"
;; TODO: Make this regexp more readable. It has three parts:
;; google search console + favicon stuff + other assets.
:matching #{#"(google.*\.html|safari-pinned-tab\.svg|favicon\.ico|browserconfig\.xml|manifest\.json|\.htaccess)|\.(css|js|png|jpg|svg|gif|pdf)$" #".well-known"}}
slack {:url "https://hooks.slack.com/services/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"})
(defn slug-fn
......@@ -240,10 +234,8 @@
;;(print-meta)
(sass)
(target)
(copy) ; oldschool
;; newschool: rsyncs everything in assets/ to target/public/
;;(shellout :cmd "rsync -a assets/ target/public/")
))
;; rsyncs everything in assets/ to target/public/
(shellout :cmd "rsync -a assets/ target/public/")))
(deftask dev
[]
......