From 777d36505713749916dfbd4d0a5fd90302271328 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 5 Oct 2023 19:02:28 +0900 Subject: feat(blog/nuldoc): add partial Open Graph support --- vhosts/blog/nuldoc-src/renderers/html.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vhosts/blog/nuldoc-src/renderers/html.ts') diff --git a/vhosts/blog/nuldoc-src/renderers/html.ts b/vhosts/blog/nuldoc-src/renderers/html.ts index d3cd9893..df211000 100644 --- a/vhosts/blog/nuldoc-src/renderers/html.ts +++ b/vhosts/blog/nuldoc-src/renderers/html.ts @@ -245,6 +245,12 @@ function getElementAttributes(e: Element): [string, string][] { if (a[0] === "name" && b[0] === "content") { return -1; } + if (a[0] === "content" && b[0] === "property") { + return 1; + } + if (a[0] === "property" && b[0] === "content") { + return -1; + } } if (e.name === "link") { if (a[0] === "href" && b[0] === "rel") { -- cgit v1.2.3-70-g09d2