2025-01-01 20:43:20 +01:00
|
|
|
{{- /* See https://ogp.me for specification */ -}}
|
2024-12-14 19:36:09 +01:00
|
|
|
{{if .OpenGraphTitle}}
|
|
|
|
<meta property="og:title" content="{{.OpenGraphTitle}}">
|
2025-01-01 20:43:20 +01:00
|
|
|
{{else if .Title}}
|
|
|
|
<meta property="og:title" content="{{.Title}}">
|
|
|
|
{{else}}
|
|
|
|
<meta property="og:title" content="{{AppDisplayName}}">
|
2024-12-14 19:36:09 +01:00
|
|
|
{{end}}
|
2025-01-01 20:43:20 +01:00
|
|
|
{{- /* og:description - a one to two sentence description of your object, maybe it only needs at most 300 bytes */ -}}
|
|
|
|
{{if and .OpenGraphDescription (not .OpenGraphNoDescription)}}
|
|
|
|
<meta property="og:description" content="{{StringUtils.EllipsisString .OpenGraphDescription 300}}">
|
2024-12-14 19:36:09 +01:00
|
|
|
{{end}}
|
|
|
|
{{if .OpenGraphURL}}
|
|
|
|
<meta property="og:url" content="{{.OpenGraphURL}}">
|
2025-01-01 20:43:20 +01:00
|
|
|
{{else}}
|
|
|
|
<meta property="og:url" content="{{AppUrl}}{{.Link}}">
|
|
|
|
{{end}}
|
|
|
|
{{if .OpenGraphType}}
|
|
|
|
<meta property="og:type" content="{{.OpenGraphType}}">
|
|
|
|
{{else}}
|
|
|
|
<meta property="og:type" content="website">
|
2024-12-14 19:36:09 +01:00
|
|
|
{{end}}
|
|
|
|
{{if .OpenGraphImageURL}}
|
|
|
|
<meta property="og:image" content="{{.OpenGraphImageURL}}">
|
2024-12-18 20:26:39 +01:00
|
|
|
{{if .OpenGraphImageWidth}}
|
|
|
|
<meta property="og:image:width" content="{{.OpenGraphImageWidth}}">
|
|
|
|
{{end}}
|
|
|
|
{{if .OpenGraphImageHeight}}
|
|
|
|
<meta property="og:image:height" content="{{.OpenGraphImageHeight}}">
|
|
|
|
{{end}}
|
|
|
|
{{if .OpenGraphImageAltText}}
|
|
|
|
<meta property="og:image:alt" content="{{.OpenGraphImageAltText}}">
|
|
|
|
{{end}}
|
2023-09-01 18:59:24 +02:00
|
|
|
{{else}}
|
2025-01-01 20:43:20 +01:00
|
|
|
<meta property="og:image" content="{{AssetUrlPrefix}}/img/logo.png">
|
2023-09-01 18:59:24 +02:00
|
|
|
{{end}}
|
2024-06-07 19:12:48 +02:00
|
|
|
<meta property="og:site_name" content="{{AppDisplayName}}">
|