mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-03 06:16:08 +00:00
32 lines
1.5 KiB
HTML
32 lines
1.5 KiB
HTML
<meta property="og:title" content="{{ .Title }}" />
|
|
<meta property="og:description" content="{{ partial "utils/page-description.html" . }}" />
|
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
|
|
{{- with $.Params.images -}}
|
|
{{- range first 6 . }}<meta property="og:image" content="{{ . | absURL }}" />{{ end -}}
|
|
{{- else -}}
|
|
{{- $featured := "" }}
|
|
{{- with $featured -}}
|
|
<meta property="og:image" content="{{ $featured.Permalink }}"/>
|
|
{{- else -}}
|
|
{{- with $.Site.Params.images }}<meta property="og:image" content="{{ index . 0 | absURL }}"/>{{ end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if .IsPage }}
|
|
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
|
|
<meta property="article:section" content="{{ .Section }}" />
|
|
{{ with .PublishDate }}<meta property="article:published_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end }}
|
|
{{ with .Lastmod }}<meta property="article:modified_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end }}
|
|
{{- end -}}
|
|
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
|
|
{{ with .Lastmod }}<meta property="og:updated_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end }}
|
|
|
|
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
|
|
{{- with .Params.locale }}<meta property="og:locale" content="{{ . }}" />{{ end }}
|
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
|
{{- with .Params.videos }}{{- range . }}
|
|
<meta property="og:video" content="{{ . | absURL }}" />
|
|
{{ end }}{{ end }}
|