Templates: Code clean-up

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-11-28 10:28:25 +01:00
parent 6806e74f7d
commit e24d857627
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0{{if not .config.Settings.UI.Zoom }}, maximum-scale=1.0, user-scalable=no{{end}}">
<title>{{if and .config.SiteCaption .config.Sponsor }}{{ .config.SiteCaption }}{{else}}{{ .config.Name }}{{end}}</title>
<meta property="og:url" content="{{ .config.SiteUrl }}">

View file

@ -10,7 +10,7 @@
<meta property="og:url" content="{{ .config.SiteUrl }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ .config.SiteTitle }}{{if .config.SiteCaption}}: {{ .config.SiteCaption }}{{end}}">
<meta property="og:image" content="{{ .config.SitePreview }}"/>
<meta property="og:image" content="{{ .config.SitePreview }}">
<meta property="og:description" content="{{ .config.SiteDescription }}">
<meta name="twitter:site" content="@photoprism_app">