Skip to content

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

@Chow-Ray

Description

@Chow-Ray

Describe the bug

  • Device/Os: [e.g. Android 10]
  • Type: [e.g. Desktop/Mobile]
  • Browser and version [e.g. Chrome 86.0]:
  • Hugo Version [ >=0.112.4 expected]:0.123.8
  • Theme Version [e.g. v4.0, master, or commit-id ]:f5c737f

Steps to reproduce the behavior:

When I upgrade the theme version to f5c737f, using the hugo --minify command, the following error will appear. Versions prior to f5c737f 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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions