|
|
@@ -10,51 +10,51 @@
|
|
|
project (or alias name)]
|
|
|
(str "<!DOCTYPE html>\n"
|
|
|
(hiccups.core/html
|
|
|
- [:head
|
|
|
- [:meta {:charset "utf-8"}]
|
|
|
- [:meta
|
|
|
- {:content
|
|
|
- "minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no",
|
|
|
- :name "viewport"}]
|
|
|
- [:link {:type "text/css", :href "/static/style.css", :rel "stylesheet"}]
|
|
|
- [:link
|
|
|
- {:href icon
|
|
|
- :type "image/png",
|
|
|
- :rel "shortcut icon"}]
|
|
|
- [:link
|
|
|
- {:href icon
|
|
|
- :sizes "192x192",
|
|
|
- :rel "shortcut icon"}]
|
|
|
- [:link
|
|
|
- {:href icon
|
|
|
- :rel "apple-touch-icon"}]
|
|
|
+ [:head
|
|
|
+ [:meta {:charset "utf-8"}]
|
|
|
+ [:meta
|
|
|
+ {: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
|
|
|
+ {:href icon
|
|
|
+ :type "image/png",
|
|
|
+ :rel "shortcut icon"}]
|
|
|
+ [:link
|
|
|
+ {:href icon
|
|
|
+ :sizes "192x192",
|
|
|
+ :rel "shortcut icon"}]
|
|
|
+ [:link
|
|
|
+ {:href icon
|
|
|
+ :rel "apple-touch-icon"}]
|
|
|
|
|
|
- [:meta {:name "apple-mobile-web-app-title" :content project}]
|
|
|
- [:meta {:name "apple-mobile-web-app-capable" :content "yes"}]
|
|
|
- [:meta {:name "apple-touch-fullscreen" :content "yes"}]
|
|
|
- [:meta {:name "apple-mobile-web-app-status-bar-style" :content "black-translucent"}]
|
|
|
- [:meta {:name "mobile-web-app-capable" :content "yes"}]
|
|
|
+ [:meta {:name "apple-mobile-web-app-title" :content project}]
|
|
|
+ [:meta {:name "apple-mobile-web-app-capable" :content "yes"}]
|
|
|
+ [:meta {:name "apple-touch-fullscreen" :content "yes"}]
|
|
|
+ [:meta {:name "apple-mobile-web-app-status-bar-style" :content "black-translucent"}]
|
|
|
+ [:meta {:name "mobile-web-app-capable" :content "yes"}]
|
|
|
|
|
|
- [:meta {:content title, :property "og:title"}]
|
|
|
- [:meta {:content "site", :property "og:type"}]
|
|
|
- (when url [:meta {:content url, :property "og:url"}])
|
|
|
- [:meta
|
|
|
- {:content icon
|
|
|
- :property "og:image"}]
|
|
|
- [:meta
|
|
|
- {:content description
|
|
|
- :property "og:description"}]
|
|
|
- [:title title]
|
|
|
- [:meta {:content project, :property "og:site_name"}]
|
|
|
- [:meta
|
|
|
- {:description description}]]
|
|
|
- [:body
|
|
|
- [:div#root]
|
|
|
- [:script (str "window.logseq_db=" transit-db)]
|
|
|
- [:script (str "window.logseq_state=" (js/JSON.stringify app-state))]
|
|
|
- [:script {:src "/static/js/mldoc.min.js"}]
|
|
|
- [:script {:type "text/javascript"}
|
|
|
- "// Single Page Apps for GitHub Pages
|
|
|
+ [:meta {:content title, :property "og:title"}]
|
|
|
+ [:meta {:content "site", :property "og:type"}]
|
|
|
+ (when url [:meta {:content url, :property "og:url"}])
|
|
|
+ [:meta
|
|
|
+ {:content icon
|
|
|
+ :property "og:image"}]
|
|
|
+ [:meta
|
|
|
+ {:content description
|
|
|
+ :property "og:description"}]
|
|
|
+ [:title title]
|
|
|
+ [:meta {:content project, :property "og:site_name"}]
|
|
|
+ [:meta
|
|
|
+ {:description description}]]
|
|
|
+ [:body
|
|
|
+ [:div#root]
|
|
|
+ [:script (str "window.logseq_db=" transit-db)]
|
|
|
+ [:script (str "window.logseq_state=" (js/JSON.stringify app-state))]
|
|
|
+ [:script {:src "/static/js/mldoc.min.js"}]
|
|
|
+ [:script {:type "text/javascript"}
|
|
|
+ "// Single Page Apps for GitHub Pages
|
|
|
// https://github.com/rafgraph/spa-github-pages
|
|
|
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
|
|
|
// ----------------------------------------------------------------------
|
|
|
@@ -82,5 +82,5 @@
|
|
|
}
|
|
|
}(window.location))"]
|
|
|
;; TODO: should make this configurable
|
|
|
- [:script {:src "/static/js/highlight.min.js"}]
|
|
|
- [:script {:src "/static/js/publishing.js"}]]))))
|
|
|
+ [:script {:src "/static/js/highlight.min.js"}]
|
|
|
+ [:script {:src "/static/js/publishing/main.js"}]]))))
|