🏗️ Finish the head attributes redesign.
This commit is contained in:
15
layouts/partials/head/opengraph.html
Normal file
15
layouts/partials/head/opengraph.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||
<meta property="og:title" content="{{ .Title | default .Site.Title }}" />
|
||||
<meta property="og:description" content="{{ .Description | default .Site.Params.Description }}" />
|
||||
<meta property="og:image" content="{{ .Scratch.Get "metaImg" }}" />
|
||||
<meta property="og:image:width" content="312" />
|
||||
<meta property="og:image:height" content="312" />
|
||||
<meta property="og:image:type" content="image/jpeg/png/svg/jpg" />
|
||||
<meta property="og:url" content="{{ .Permalink }}"/>
|
||||
<meta property="og:site_name" content="{{ .Title | default .Site.Title }}" />
|
||||
<meta property="og:locale" content="{{ .Scratch.Get "lang" }}"/>
|
||||
{{- if .IsHome }}
|
||||
<meta property="article:author" content="{{ (delimit .Authors ",") | default .Site.Params.Author }}" />
|
||||
<meta property="article:published_time" content="{{ .PublishDate }}" />
|
||||
<meta property="article:modified_time" content="{{ .Lastmod }}" />
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user