fix: can't publish on subdomain

pull/2422/head
Tienson Qin 2021-07-12 09:53:58 +08:00
parent 8e25a4dd32
commit 1114306116
1 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
(defn publishing-html
[transit-db app-state]
(let [{:keys [icon name alias title description url]} (:project (state/get-config))
icon (or icon "/static/img/logo.png")
icon (or icon "static/img/logo.png")
project (or alias name)]
(str "<!DOCTYPE html>\n"
(hiccups.core/html
@ -17,8 +17,8 @@
{:content
"minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no",
:name "viewport"}]
[:link {:type "text/css", :href "/static/css/style.css", :rel "stylesheet"}]
[:link {:type "text/css", :href "/static/css/custom.css", :rel "stylesheet"}]
[:link {:type "text/css", :href "static/css/style.css", :rel "stylesheet"}]
[:link {:type "text/css", :href "static/css/custom.css", :rel "stylesheet"}]
[:link
{:href icon
:type "image/png",
@ -83,6 +83,6 @@
}
}(window.location))"]
;; TODO: should make this configurable
[:script {:src "/static/js/highlight.min.js"}]
[:script {:src "/static/js/interact.min.js"}]
[:script {:src "/static/js/main.js"}]]))))
[:script {:src "static/js/highlight.min.js"}]
[:script {:src "static/js/interact.min.js"}]
[:script {:src "static/js/main.js"}]]))))