From 3b15254f18877b0ada69851ef126a4c846fdccb2 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 23 Jul 2018 12:45:43 +0100 Subject: [PATCH] metadata: If set, use the summary parameter for `og:description` Close #518 --- layouts/partials/header.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 055f78f9..67192ba1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -15,6 +15,8 @@ {{ if .IsPage }} {{ if .Params.abstract }} {{ $scr.Set "description" .Params.abstract }} + {{ else if .Params.summary }} + {{ $scr.Set "description" .Params.summary }} {{ else }} {{ $scr.Set "description" .Summary }} {{ end }}