From f1642f5121208d5d3fa4f838c93e1e1f484f124f Mon Sep 17 00:00:00 2001 From: SouthFox Date: Tue, 29 Aug 2023 11:07:02 +0800 Subject: [PATCH] [hugo/ux] add style && referrer policy --- src/main/backend/hugo/site.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/backend/hugo/site.clj b/src/main/backend/hugo/site.clj index e3b065a..12dfcf0 100644 --- a/src/main/backend/hugo/site.clj +++ b/src/main/backend/hugo/site.clj @@ -5,9 +5,11 @@ (defn build-hu-post [request] - {:status 200 :headers {"Content-Type" "text/html; charset=utf-8"} :body (str (hiccup/html {:escape-strings? false} [: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})]]))})