head.tmpl,go: set description+lang, rm meta CSP
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
de9c6d0196
commit
35435da9a6
@ -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" }}
|
||||
|
Loading…
Reference in New Issue
Block a user