2024-04-01 11:07:02 -04:00
|
|
|
<meta property="og:url" content="{{ .Permalink }}">
|
2021-02-18 11:51:32 -05:00
|
|
|
|
2024-04-01 11:51:32 -04:00
|
|
|
{{- with or site.Title site.Params.title | plainify }}
|
|
|
|
<meta property="og:site_name" content="{{ . }}">
|
|
|
|
{{- end }}
|
|
|
|
|
2024-04-24 15:15:57 -04:00
|
|
|
{{- with or .Title site.Title site.Params.title | plainify }}
|
2024-04-01 11:51:32 -04:00
|
|
|
<meta property="og:title" content="{{ . }}">
|
|
|
|
{{- end }}
|
|
|
|
|
2024-04-24 15:15:57 -04:00
|
|
|
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }}
|
2024-04-01 11:51:32 -04:00
|
|
|
<meta property="og:description" content="{{ . }}">
|
|
|
|
{{- end }}
|
|
|
|
|
2024-05-10 18:25:20 -04:00
|
|
|
{{- with or .Params.locale site.Language.LanguageCode }}
|
|
|
|
<meta property="og:locale" content="{{ replace . `-` `_` }}">
|
2024-04-01 11:51:32 -04:00
|
|
|
{{- end }}
|
2018-05-04 11:53:56 -04:00
|
|
|
|
2018-08-12 14:25:41 -04:00
|
|
|
{{- if .IsPage }}
|
2024-04-01 11:51:32 -04:00
|
|
|
<meta property="og:type" content="article">
|
2024-04-24 15:15:57 -04:00
|
|
|
{{- with .Section }}
|
|
|
|
<meta property="article:section" content="{{ . }}">
|
|
|
|
{{- end }}
|
2024-04-01 11:51:32 -04:00
|
|
|
{{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
|
|
|
|
{{- 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 }}
|
|
|
|
{{- range .GetTerms "tags" | first 6 }}
|
|
|
|
<meta property="article:tag" content="{{ .Page.Title | plainify }}">
|
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
<meta property="og:type" content="website">
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- with partial "_funcs/get-page-images" . }}
|
|
|
|
{{- range . | first 6 }}
|
|
|
|
<meta property="og:image" content="{{ .Permalink }}">
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- with .Params.audio }}
|
|
|
|
{{- range . | first 6 }}
|
|
|
|
<meta property="og:audio" content="{{ . | absURL }}">
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- with .Params.videos }}
|
|
|
|
{{- range . | first 6 }}
|
|
|
|
<meta property="og:video" content="{{ . | absURL }}">
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- range .GetTerms "series" }}
|
|
|
|
{{- range .Pages | first 7 }}
|
|
|
|
{{- if ne $ . }}
|
|
|
|
<meta property="og:see_also" content="{{ .Permalink }}">
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
2023-11-01 11:31:15 -04:00
|
|
|
{{- with site.Params.social }}
|
|
|
|
{{- if reflect.IsMap . }}
|
2024-04-01 11:51:32 -04:00
|
|
|
{{- with .facebook_app_id }}
|
|
|
|
<meta property="fb:app_id" content="{{ . }}">
|
|
|
|
{{- else }}
|
|
|
|
{{- with .facebook_admin }}
|
|
|
|
<meta property="fb:admins" content="{{ . }}">
|
|
|
|
{{- end }}
|
2024-03-12 14:16:05 -04:00
|
|
|
{{- end }}
|
2023-10-16 20:43:11 -04:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|