hugo/docs/content/en/_common/methods/page/output-format-methods.md
2025-04-10 13:04:51 +02:00

811 B

_comment
Do not remove front matter.

Get IDENTIFIER

(any) Returns the OutputFormat object with the given identifier.

MediaType

(media.Type) Returns the media type of the output format.

MediaType.MainType

(string) Returns the main type of the output format's media type.

MediaType.SubType

(string) Returns the subtype of the current format's media type.

Name

(string) Returns the output identifier of the output format.

(string) Returns the permalink of the page generated by the current output format.

Rel

(string) Returns the rel value of the output format, either the default or as defined in the site configuration.

(string) Returns the relative permalink of the page generated by the current output format.