fixed opengraph article tags

This commit is contained in:
Gabriele Musco 2021-03-10 09:01:32 +01:00
parent fd0cf72329
commit b8ab6695be
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
1 changed files with 3 additions and 3 deletions

View File

@ -33,10 +33,10 @@
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:type" content="article" />
<meta property="og:type:article:author" content="{{ .Site.Params.Author }}" />
<meta property="og:type:article:published_time" content='{{ .Date.Format "2006-01-02T15:04:05Z-0700" }}' />
<meta property="article:author" content="{{ .Site.Params.Author }}" />
<meta property="article:published_time" content='{{ .Date.Format "2006-01-02T15:04:05Z-0700" }}' />
{{ range .Params.tags }}
<meta property="og:type:article:tag" content="{{ . }}" />
<meta property="article:tag" content="{{ . }}" />
{{ end }}
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:image" content='{{ if .Params.Image }}{{ .Params.Image | absURL }}{{ else }}{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}{{ end }}' />