head.tmpl,go: set description+lang, rm meta CSP
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2023-09-10 12:47:35 +02:00
parent de9c6d0196
commit 35435da9a6
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
2 changed files with 2 additions and 4 deletions

@ -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,
}

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
{{- if true -}}
<meta charset="utf-8">
@ -14,6 +14,7 @@
<meta property="og:title" content="{{ .AppName }}">
<meta property="og:site_name" content="{{ .AppName }}">
{{- end -}}
<meta name="description" content="Password Compromise Monitoring Tool">
<meta property="og:description" content="Password Compromise Monitoring Tool">
<meta property="og:type" content="website">
<!-- <meta name="referrer" content="no-referrer, strict-origin-when-cross-origin"> -->
@ -23,7 +24,6 @@
<link href="/assets/css/pcmt.css" rel="preload" as="style" integrity="{{- sha384 "css/pcmt.css" -}}">
<link href="/assets/css/pcmt.css" rel="stylesheet" integrity="{{- sha384 "css/pcmt.css" -}}">
<meta http-equiv="content-security-policy" content="{{ .CSP }}"/>
{{- if .DevelMode -}}
<!-- inject browsersync script if running in devel mode -->
{{ template "browsersync.tmpl" }}