Commit 3b82e2fe authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Improve meta descriptions by using .Summary. Closes #50

parent 5b514edd
<!-- From Indiego partials/micro-schema.html https://github.com/growdigital/indiego/blob/master/themes/indiegomin/layouts/partials/micro-schema.html -->
<!-- Schema.org markup -->
<meta itemprop="headline" content="{{ .Title }}">
<meta itemprop="description" content="{{ .Description }}">
<meta itemprop="description" content="{{ .Summary }}">
{{ if .Params.image }}
<meta itemprop="image" content="{{ .Site.BaseURL }}{{ .Params.image }}">
{{ else if eq .Type "photos" }}
......
......@@ -6,7 +6,7 @@
<meta name="twitter:description" content="{{ .Summary }}">
{{ else }}
<meta name="twitter:title" content="{{ .Title }}">
<meta name="twitter:description" content="{{ .Description }}">
<meta name="twitter:description" content="{{ .Summary }}">
{{ end }}
{{ if .Params.Image }}
<!-- Twitter Summary Card with Large Image data -->
......@@ -40,7 +40,11 @@
<meta property="og:type" content="article">
<meta property="og:title" content="{{ .Title }}">
<meta property="og:url" content="{{ .Permalink }}">
{{ if .Params.Description }}
<meta property="og:description" content="{{ .Params.Description }}">
{{ else }}
<meta property="og:description" content="{{ .Summary }}">
{{ end }}
{{ if .Params.Image }}
<!-- If image present -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment