How to configure ref and relref using a config.yaml file?

Hi there, my website is up and running and have an auto-import from obsidian just like I wanted.

Here you can find my config.yaml, what I want to do is add a ref configuration so that an empty link give just a warning in HUGO building and refers to 404.

My issue is that using these lines in my config.yaml doesn’t work :

refLinksErrorLevel (“WARNING”)
refLinksNotFoundURL: https://mathisgauthey.github.io/404

I get the following errors :

Error: command error: failed to load config: "/home/mathis/documents/mathisgauthey.github.io/config.yaml:8:1": failed to unmarshal YAML: yaml: line 8: could not find expected ':'

Stupid old me found out while writing so I figured I might as well post it. Solution :

refLinksErrorLevel: WARNING
refLinksNotFoundURL: https://mathisgauthey.github.io/404
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.