mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
fix(path): correct socialUrl rendering
Currently, socialUrl is incorrectly rendered as https:/baseUrl/path, with a missing slash in ://. Since socialUrl is only used when cfg.baseUrl is defined, we can simplify by using cfg.baseUrl directly, excluding the scheme portion of the URL.
This commit is contained in:
parent
a934397961
commit
cb730c10da
@ -152,7 +152,9 @@ export default (() => {
|
||||
|
||||
// Url of current page
|
||||
const socialUrl =
|
||||
fileData.slug === "404" ? url.toString() : joinSegments(url.toString(), fileData.slug!)
|
||||
fileData.slug === "404"
|
||||
? url.toString()
|
||||
: `https://${joinSegments(cfg.baseUrl, fileData.slug!)}`
|
||||
|
||||
return (
|
||||
<head>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user