Karim
2025-03-21 3ce6aa49bf25b26a4cb1bf18e9770271d132772d
refs
author Karim <46734059+h-karim@users.noreply.github.com>
Friday, March 21, 2025 23:49 +0000
committer GitHub <noreply@github.com>
Friday, March 21, 2025 23:49 +0000
commit3ce6aa49bf25b26a4cb1bf18e9770271d132772d
tree d13ddc09f78149fbd30a77b3ea1e7c87d8dc84a9 tree | zip | gz
parent 9316ddf2f5ca7d0a08b06a9a6d548e9ad180fc4f view | diff
fix(ogImage): update socialImage path to include base URL if defined (#1858)

* fix(ogImage): update socialImage path to include base URL if defined

* feat(path): add function to check if a file path is absolute

* fix(ogImage): handle absolute paths for user defined og image paths

* docs(CustomOgImages): update socialImage property to accept full URLs

* fix(ogImage): typo

* fix(ogImage): improve user-defined OG image path handling

* Update docs/plugins/CustomOgImages.md

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>

* Update quartz/plugins/emitters/ogImage.tsx

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>

* refactor(path): remove isAbsoluteFilePath function

* fix(ogImage): update user-defined OG image path handling to support relative URLs

* feat(ogImage): enhance user-defined OG image path handling with absolute URL support

* refactor(ogImage): remove debug log for ogImagePath

* feat(path): add isAbsoluteURL function and corresponding tests

* refactor(path): remove unused URL import for isomorphic compatibility

---------

Co-authored-by: Karim H <karimh96@hotmail.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
4 files modified
35 ■■■■ changed files
docs/plugins/CustomOgImages.md 2 ●●● diff | view | raw | blame | history
quartz/plugins/emitters/ogImage.tsx 12 ●●●● diff | view | raw | blame | history
quartz/util/path.test.ts 11 ●●●●● diff | view | raw | blame | history
quartz/util/path.ts 10 ●●●●● diff | view | raw | blame | history