File: output-format-methods.md

package info (click to toggle)
hugo 0.131.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 45,580 kB
  • sloc: javascript: 31,172; xml: 248; makefile: 73; sh: 42
file content (27 lines) | stat: -rw-r--r-- 779 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# 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.

Permalink
: (`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.

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