diff --git a/themes/typing/scripts/openGraph.js b/themes/typing/scripts/openGraph.js index 804a963..14747e7 100644 --- a/themes/typing/scripts/openGraph.js +++ b/themes/typing/scripts/openGraph.js @@ -72,7 +72,7 @@ function openGraphHelper (options = {}) { let img const imgPattern = /]*src=['"]([^'"]+)([^>]*>)/gi while ((img = imgPattern.exec(content)) !== null) { - images.push(img[1]) + if (!img[1].endsWith('.svg')) images.push(img[1]) } }