diff options
Diffstat (limited to 'layouts/partials/head/meta.html')
| -rw-r--r-- | layouts/partials/head/meta.html | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index d0358a1..f739838 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -1,22 +1,27 @@ -<!-- Basic Meta --> +{{- /* Basic Meta */ -}} <meta name="author" content="{{ site.Params.author.name | default site.Title }}"> <meta name="robots" content="index, follow"> -<!-- Open Graph (OG) --> +{{- /* Open Graph */ -}} <meta property="og:title" content="{{ .Title | default site.Title }}"> <meta property="og:description" content="{{ .Description | default .Summary }}"> <meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}"> <meta property="og:url" content="{{ .Permalink }}"> <meta property="og:site_name" content="{{ site.Title }}"> -{{- with .Params.images }} - <meta property="og:image" content="{{ (index . 0) | absURL }}"> +{{- with site.Params.logo }} + <meta property="og:image" content="{{ . | absURL }}"> +{{- end }} +{{- if .IsPage }} + <meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> + {{- with .Lastmod }} + <meta property="article:modified_time" content="{{ .Format "2006-01-02T15:04:05Z07:00" }}"> + {{- end }} {{- end }} -<!-- Twitter Card --> +{{- /* Twitter Card */ -}} <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="{{ .Title | default site.Title }}"> <meta name="twitter:description" content="{{ .Description | default .Summary }}"> -{{- with .Params.images }} - <meta name="twitter:image" content="{{ (index . 0) | absURL }}"> +{{- with site.Params.logo }} + <meta name="twitter:image" content="{{ . | absURL }}"> {{- end }} - |
