From 5ccc2dcbba3bfeca2d9edc39209d43d217eb2a80 Mon Sep 17 00:00:00 2001
From: Sohum <31165513+ssmendon@users.noreply.github.com>
Date: Tue, 03 Dec 2024 09:52:51 +0000
Subject: [PATCH] fix(head): update open-graph width and height protocol per ogp (#1512)

---
 quartz/cli/handlers.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js
index 01adc55..6b23d80 100644
--- a/quartz/cli/handlers.js
+++ b/quartz/cli/handlers.js
@@ -356,6 +356,15 @@
               source: "**/*.*",
               headers: [{ key: "Content-Disposition", value: "inline" }],
             },
+            {
+              source: "**/*.webp",
+              headers: [{ key: "Content-Type", value: "image/webp" }],
+            },
+            // fixes bug where avif images are displayed as text instead of images (future proof)
+            {
+              source: "**/*.avif",
+              headers: [{ key: "Content-Type", value: "image/avif" }],
+            },
           ],
         })
         const status = res.statusCode

--
Gitblit v1.10.0