summaryrefslogtreecommitdiffstats
path: root/layouts/partials/templates/opengraph.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-16 00:33:53 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-16 00:33:53 +0200
commitcfc3f2c8c067d47505e64b1445c4692316fd4eb6 (patch)
tree0f88f5e4ffb31b9b7484865945c2612d7b684069 /layouts/partials/templates/opengraph.html
parent046753f526fb3247855886d229768076667fd1a1 (diff)
downloadgohugo-theme-ed-cfc3f2c8c067d47505e64b1445c4692316fd4eb6.tar.gz
Introduce description partial
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 -}}