summaryrefslogtreecommitdiffstats
path: root/layouts/partials/templates/opengraph.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/templates/opengraph.html')
-rw-r--r--layouts/partials/templates/opengraph.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html
index c94fd68..3b9fb36 100644
--- a/layouts/partials/templates/opengraph.html
+++ b/layouts/partials/templates/opengraph.html
@@ -1,6 +1,6 @@
<!-- Open Graph metadata -->
<meta property="og:title" content="{{ .Title }}">
- <meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ replaceRE "\n" " " (.Summary | truncate 170) }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
+ <meta property="og:description" content="{{ (partial "description.html" . ) }}">
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
<meta property="og:url" content="{{ .Permalink }}">
{{- if .Params.cover.image -}}