Back to Hugo

Ref And Relref Error Handling

docs/content/en/_common/ref-and-relref-error-handling.md

0.161.1335 B
Original Source

By default, Hugo will throw an error and fail the build if it cannot resolve the path. You can change this to a warning in your project configuration, and specify a URL to return when the path cannot be resolved.

{{< code-toggle file=hugo >}} refLinksErrorLevel = 'warning' refLinksNotFoundURL = '/some/other/url' {{< /code-toggle >}}