From 35435da9a6af954d25c1b0f959bf70c921aca79f Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 10 Sep 2023 12:47:35 +0200 Subject: [PATCH] head.tmpl,go: set description+lang, rm meta CSP --- handlers/page.go | 2 -- templates/head.tmpl | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/handlers/page.go b/handlers/page.go index 8b278e9..bffca83 100644 --- a/handlers/page.go +++ b/handlers/page.go @@ -12,7 +12,6 @@ type page struct { Title string Name string CSRF string - CSP string DevelMode bool Current string Error string @@ -29,7 +28,6 @@ func newPage() *page { p := &page{ AppName: appName, AppVer: appver, - CSP: setting.HTTPCSP(), DevelMode: appIsDevel, Data: data, } diff --git a/templates/head.tmpl b/templates/head.tmpl index 03a520c..b95dbfc 100644 --- a/templates/head.tmpl +++ b/templates/head.tmpl @@ -1,5 +1,5 @@ - + {{- if true -}} @@ -14,6 +14,7 @@ {{- end -}} + @@ -23,7 +24,6 @@ - {{- if .DevelMode -}} {{ template "browsersync.tmpl" }}