CleanBlog icon indicating copy to clipboard operation
CleanBlog copied to clipboard

background-image quote encoding

Open flcdrg opened this issue 2 years ago • 3 comments

Seeing this invalid URL being logged in browser console for a post with image: front matter

GET
http://localhost:5080/2023/12/"/assets/2023/01/terraform-logo.png"

Looks like the double quotes in https://github.com/statiqdev/CleanBlog/blob/ad639891c4469a2c9fc1d16b0ef8f99e975e82d8/input/_header.cshtml#L12 are being HTML encoded

flcdrg avatar Jan 01 '24 05:01 flcdrg

Switching line 12 to use single quotes inside the url() seems to fix this

flcdrg avatar Jan 01 '24 05:01 flcdrg

Is the metadata for the post Image: "/assets/2023/01/terraform-logo.png" instead of Image: /assets/2023/01/terraform-logo.png

alex-hedley avatar Jan 02 '24 16:01 alex-hedley

No, it wasn't quoted in the .md file

flcdrg avatar Jan 03 '24 00:01 flcdrg