From a09d2fb8a2905a965a7c6b325ae85e44b949bd27 Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Mon, 9 Oct 2023 19:13:39 +0200 Subject: [PATCH] fixed metas plugin --- CHANGELOG.md | 4 ++++ plugins/metas.ts | 5 ----- tests/__snapshots__/metas.test.ts.snap | 9 --------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13746ffb..c1ee9f94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ Any BREAKING CHANGE between minor versions will be documented here in upper case ### Added - The second argument of the `page.data.url()` function has the default URL value. +### Changed +- Removed schema.org meta tags in metas plugin, because they are are not valid. + Probably it needs a new specific plugin. + ### Fixed - Ignore error checking Lume version in offline environments [#496]. - Updated dependencies: `deno_dom`, `katex`, `preact`, `sass`, `svg2png`, `terser`. diff --git a/plugins/metas.ts b/plugins/metas.ts index e4a5791e..257bd8f8 100644 --- a/plugins/metas.ts +++ b/plugins/metas.ts @@ -112,11 +112,6 @@ export default function (userOptions?: Partial): Plugin { ); addMeta(document, "name", "twitter:site", twitter); - // Schema.org - addMeta(document, "itemprop", "name", title); - addMeta(document, "itemprop", "description", description, 155); - addMeta(document, "itemprop", "image", image || icon); - // SEO addMeta(document, "name", "description", description, 155); addMeta(document, "name", "keywords", keywords?.join(", ")); diff --git a/tests/__snapshots__/metas.test.ts.snap b/tests/__snapshots__/metas.test.ts.snap index 2fef8c63..12c6b73f 100644 --- a/tests/__snapshots__/metas.test.ts.snap +++ b/tests/__snapshots__/metas.test.ts.snap @@ -101,9 +101,6 @@ snapshot[`metas plugin 3`] = ` - - - @@ -179,9 +176,6 @@ snapshot[`metas plugin 3`] = ` - - - @@ -256,9 +250,6 @@ snapshot[`metas plugin 3`] = ` - - -