From 9517f40f7388daac5608ff6bd982ccc969ed1fa1 Mon Sep 17 00:00:00 2001 From: Still Hsu <341464@gmail.com> Date: Tue, 16 Jul 2019 17:26:54 +0800 Subject: [PATCH] Update metatag field to use Open Graph impl --- DocFX.Plugin.DescriptionGenerator/DescriptionPostProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DocFX.Plugin.DescriptionGenerator/DescriptionPostProcessor.cs b/DocFX.Plugin.DescriptionGenerator/DescriptionPostProcessor.cs index 103e9cb..b493db9 100644 --- a/DocFX.Plugin.DescriptionGenerator/DescriptionPostProcessor.cs +++ b/DocFX.Plugin.DescriptionGenerator/DescriptionPostProcessor.cs @@ -105,7 +105,7 @@ private static HtmlDocument AppendMetadata(HtmlDocument htmlDoc, string value) { var headerNode = htmlDoc.DocumentNode.SelectSingleNode("//head"); var metaDescriptionNode = htmlDoc.CreateElement("meta"); - metaDescriptionNode.SetAttributeValue("name", "description"); + metaDescriptionNode.SetAttributeValue("property", "og:description"); metaDescriptionNode.SetAttributeValue("content", value); headerNode.AppendChild(metaDescriptionNode); return htmlDoc;