Back to Hugo

canonical output format

docs/content/en/quick-reference/glossary/canonical-output-format.md

0.161.11.0 KB
Original Source

The canonical output format is the output format for the current page where the format's rel property is set to canonical in your project configuration, if such a format exists. If there is only one output format for the current page, that is the canonical output format, regardless of whether the format's rel property is set to canonical.

By default, html is the only predefined output format with this setting; the rel property for all others is set to alternate. If two or more output formats for the current page have their rel property set to canonical, the canonical output format is the first one specified in:

  • The outputs front matter field of the current page, or
  • The outputs section of your project configuration for the current page kind.