diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx
index 6ee0b4057..0b2c62bf7 100644
--- a/quartz/components/Head.tsx
+++ b/quartz/components/Head.tsx
@@ -37,6 +37,7 @@ async function generateSocialImage(opts: ImageOptions) {
fs.writeFileSync(`${imageDir}/${fileName}.${extension}`, compressed)
}
+// TODO: remove html from description
// TODO: add to config and use in generateSocialImage
// Social image defaults
const ogHeight = 1200
@@ -123,11 +124,16 @@ export default (() => {
-
-
+ {/* Dont set width and height if unknown (when using custom frontmatter image) */}
+ {!frontmatterImgUrl && (
+ <>
+
+
+
+
+ >
+ )}
-
-
{cfg.baseUrl && (
<>