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
|
Title string
|
||||||
Name string
|
Name string
|
||||||
CSRF string
|
CSRF string
|
||||||
CSP string
|
|
||||||
DevelMode bool
|
DevelMode bool
|
||||||
Current string
|
Current string
|
||||||
Error string
|
Error string
|
||||||
@ -29,7 +28,6 @@ func newPage() *page {
|
|||||||
p := &page{
|
p := &page{
|
||||||
AppName: appName,
|
AppName: appName,
|
||||||
AppVer: appver,
|
AppVer: appver,
|
||||||
CSP: setting.HTTPCSP(),
|
|
||||||
DevelMode: appIsDevel,
|
DevelMode: appIsDevel,
|
||||||
Data: data,
|
Data: data,
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
{{- if true -}}
|
{{- if true -}}
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -14,6 +14,7 @@
|
|||||||
<meta property="og:title" content="{{ .AppName }}">
|
<meta property="og:title" content="{{ .AppName }}">
|
||||||
<meta property="og:site_name" content="{{ .AppName }}">
|
<meta property="og:site_name" content="{{ .AppName }}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
<meta name="description" content="Password Compromise Monitoring Tool">
|
||||||
<meta property="og:description" content="Password Compromise Monitoring Tool">
|
<meta property="og:description" content="Password Compromise Monitoring Tool">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<!-- <meta name="referrer" content="no-referrer, strict-origin-when-cross-origin"> -->
|
<!-- <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="preload" as="style" integrity="{{- sha384 "css/pcmt.css" -}}">
|
||||||
<link href="/assets/css/pcmt.css" rel="stylesheet" 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 -}}
|
{{- if .DevelMode -}}
|
||||||
<!-- inject browsersync script if running in devel mode -->
|
<!-- inject browsersync script if running in devel mode -->
|
||||||
{{ template "browsersync.tmpl" }}
|
{{ template "browsersync.tmpl" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user