-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Minified build errors with: expected comma character or an array or object ending on line... #1441
Comments
Something interesting happens when I set a base URL.
First of all, it succeeds. And the breadcrumb JSON items now have the correct "position" numbers: {
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Posts",
"item": "https://example.com/posts/"
},
{
"@type": "ListItem",
"position": 2,
"name": "This is a reproducer for a PaperMod bug",
"item": "https://example.com/posts/2024-02-27_reproducer/"
}
]
} (it was minified in the file; I have pretty-printed it here for readability) |
Yes you are supposed to use a baseURL and not build with a |
Do I understand correctly that not setting a baseURL is not a valid use-case with PaperMod? |
It's not only about use cases but what implementation works with the rest of the functions without breaking anything. |
Describe the bug
I am getting this error when running
hugo --minify
:and indeed the tempfile has a scheme.org JSON array with two elements and no comma between them:
I am not sure what triggers the error. Anyway, I could build a reproducer (see below).
Steps to reproduce the behavior:
Expected behavior:
I expected the site to build, just like it does when no
--minify
is passed.Repo/Source where this issue can be reproduced:
The text was updated successfully, but these errors were encountered: