Skip to content

Double-quote in top-level menu icon code causes rebuild to fail #1583

@ghost

Description

In reference to the code listed at:
https://www.docsy.dev/docs/adding-content/navigation/#adding-icons-to-the-top-level-menu

The double-quote in the "pre" causes the rebuild to fail.

The error message:
Change of config file detected, rebuilding site.
2023-06-16 21:34:45.442 -0400
ERROR 2023/06/16 21:34:45 Failed to reload config: failed to load config: "xxx\hugo.toml:240:22": unmarshal failed: toml: expected newline but got U+0066 'f'
Rebuilt in 9 ms

Changing it to a single-quote fixes it.

Bad code:
pre = "<i class="fa-brands fa-github"></i>"

Good code:
pre = "<i class='fa-brands fa-github'></i>"

Docsy is amazing! Thank you to everyone on the team for your hard work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions