pcmt/templates/head.tmpl
leo 9c6fd898ca
All checks were successful
continuous-integration/drone/push Build is passing
head.tmpl: add referrer meta element
2023-05-11 23:24:17 +02:00

28 lines
1023 B
Go HTML Template

<!DOCTYPE html>
<html>
<head>
{{- if true -}}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height initial-scale=1.0, minimum-scale=1.0">
{{ else }}
{{htmlSafe "<!--[if IE 6]>"}}
<meta http-equiv="Content-Type" content="text/html; charset=Unicode">
{{htmlSafe "<![endif]-->"}}
{{ end -}}
<title>{{if .Title}}{{ .Title }} -{{end}} {{if .AppName}}{{ .AppName }}{{end}}</title>
{{- if .AppName -}}
<meta property="og:title" content="{{ .AppName }}">
<meta property="og:site_name" content="{{ .AppName }}">
{{- end -}}
<meta property="og:type" content="website">
<meta name="referrer" content="no-referrer, strict-origin-when-cross-origin">
<link rel="icon" href="/assets/img/logo-pcmt.svg" type="image/svg+xml">
<link href="/assets/css/pcmt.css" rel="preload" as="style">
<link href="/assets/css/pcmt.css" rel="stylesheet">
{{- if .DevelMode -}}
<!-- <link href="http://localhost:3002/browser-sync/browser-sync-client.js?v=2.29.1" rel="preload" as="script"> -->
{{- end -}}
</head>