{{ $ver := .Page.Params.version | default .Site.Params.latest }}
{{- if .IsHome -}}
    <meta property="og:title" {{ printf "content=%s" .Site.Title }} />
{{- else }}
    {{ if eq .Page.Params.version "master" }}
        <meta property="og:title" {{ printf "content='Crossplane Docs · master · %s'" .Params.Title | safeHTMLAttr }} />
    {{ else if and (ne .Page.Params.version "0") (ne .Page.Params.version "master") }}
        <meta property="og:title" {{ printf "content='Crossplane Docs · v%s · %s'" $ver .Params.Title | safeHTMLAttr }} />
    {{ else }}
        <meta property="og:title" {{ printf "content='Crossplane %s · %s'" .Params.Product .Page.Params.Title | safeHTMLAttr  }} />
    {{ end }}
{{ end }}

<meta property="og:description"     content="{{ .Summary | truncate 200 }}" />