[hugo/ux] add style && referrer policy

This commit is contained in:
SouthFox 2023-08-29 11:07:02 +08:00
parent 2809634cda
commit f1642f5121

View file

@ -5,9 +5,11 @@
(defn build-hu-post (defn build-hu-post
[request] [request]
{:status 200 {:status 200
:headers {"Content-Type" "text/html; charset=utf-8"} :headers {"Content-Type" "text/html; charset=utf-8"}
:body (str (hiccup/html {:escape-strings? false} :body (str (hiccup/html {:escape-strings? false}
[:html [:html
[:body (handlers/fetch-hu-post request {:hugo true})]]))}) [:head
[:meta {:name "referrer" :content "no-referrer"}]]
[:body {:style "margin: auto;max-width: 65%;"}
(handlers/fetch-hu-post request {:hugo true})]]))})