adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
9.53k stars 2.58k forks source link

[BUG]In the f5c737f version, using the `hugo --minify` command will report an error. #1458

Closed Chow-Ray closed 5 months ago

Chow-Ray commented 5 months ago

Describe the bug

Steps to reproduce the behavior:

When I upgrade the theme version to https://github.com/adityatelange/hugo-PaperMod/commit/f5c737f872ae1db688641dcaf0eaa538958b57a6, using the hugo --minify command, the following error will appear. Versions prior to https://github.com/adityatelange/hugo-PaperMod/commit/f5c737f872ae1db688641dcaf0eaa538958b57a6 do not generate this error. In fact, all articles are reporting errors. This error prevents netlify from working because it contains the hugo --minify command.

Expected behavior:

Repo/Source where this issue can be reproduced:

Screenshots

Additional context

$ hugo --minify
Start building sites …
hugo v0.123.8-5fed9c591b694f314e5939548e11cc3dcb79a79c+extended windows/amd64 BuildDate=2024-03-07T13:14:42Z VendorInfo=gohugoio

ERROR failed to process "\\posts\\it小记\\2017-08-03-如何在gpg中导入openkeychain备份\\index.html": "C:\Users\R\AppData\Local\Temp\hugo-transform-error3122075759:120:102": expected comma character or an array or object ending on line 120 and column 102
   14: .../papermod-cover.png""datePublished": "201...