2021-03-23 14:14:43 -05:00
|
|
|
<meta property="og:site_name"
|
|
|
|
content='{{ .Site.Title | default "Ficurinia" }}' />
|
|
|
|
{{ if .IsPage }}
|
|
|
|
<meta property="og:title" content="{{ .Title }}" />
|
|
|
|
<meta property="og:type" content="article" />
|
|
|
|
|
|
|
|
<meta
|
|
|
|
property="article:author" content="{{ .Site.Params.Author }}" />
|
|
|
|
<meta
|
|
|
|
property="article:published_time"
|
|
|
|
content='{{ .Date.Format "2006-01-02T15:04:05Z-0700" }}' />
|
2021-04-18 03:50:02 -05:00
|
|
|
{{ if .Params.tags }}
|
2021-06-16 04:08:07 -05:00
|
|
|
{{ range sort .Params.tags }}
|
2021-04-18 03:50:02 -05:00
|
|
|
<meta property="article:tag" content="{{ . }}" />
|
|
|
|
{{ end }}
|
2021-03-23 14:14:43 -05:00
|
|
|
{{ end }}
|
|
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
2022-10-24 01:02:44 -05:00
|
|
|
{{ $image := .Site.Params.icon512 | default "/img/icon.svg" }}
|
|
|
|
{{ if .Params.Image }}
|
|
|
|
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
|
|
|
{{ $image = .Params.Image }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $image = path.Join (path.Join .File.Dir .Params.Image) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2021-03-23 14:14:43 -05:00
|
|
|
<meta property="og:image"
|
2022-10-24 01:02:44 -05:00
|
|
|
content="{{ $image | absURL }}" />
|
2021-04-18 03:50:02 -05:00
|
|
|
{{ if .Params.description }}
|
|
|
|
<meta property="og:description" content="{{ .Params.description }}" />
|
|
|
|
{{ else }}
|
2022-03-11 07:23:52 -06:00
|
|
|
<meta property="og:description" content="{{ substr .Summary 0 160 }}" />
|
2021-04-18 03:50:02 -05:00
|
|
|
{{ end }}
|
2021-03-23 14:14:43 -05:00
|
|
|
{{ else }}
|
|
|
|
<meta property="og:title"
|
|
|
|
content='{{ .Site.Title | default "Ficurinia" }}' />
|
2021-04-18 03:50:02 -05:00
|
|
|
{{ if .Site.Params.description }}
|
2021-04-18 04:06:07 -05:00
|
|
|
<meta property="og:description" content="{{ .Site.Params.description }}" />
|
2021-04-18 03:50:02 -05:00
|
|
|
{{ end }}
|
2021-03-23 14:14:43 -05:00
|
|
|
<meta property="og:type" content="blog" />
|
|
|
|
<meta property="og:image"
|
2022-03-10 04:35:04 -06:00
|
|
|
content='{{ .Site.Params.icon512 | default "/img/icon.svg" | absURL }}' />
|
2021-03-23 14:14:43 -05:00
|
|
|
{{ end }}
|