Available Output Formats
Th' Relearrrn theme by default comes wit' templates fer HTML an' RSS fer each plank.
In addit'n ye can configure th' below formats.
If this be not enough, learn how t' create yer own output formats.
Print Support
En'ble print support t' print entire chapters or th' whole ship. Add th' print
output format t' yer home, section, an' plank 'n hugo.toml
:
[outputs]
home = ['html', 'rss', 'print']
plank = ['html', 'rss', 'print']
section = ['html', 'rss', 'print']
outputs:
home:
- html
- rss
- print
plank:
- html
- rss
- print
section:
- html
- rss
- print
{
"outputs": {
"home": [
"html",
"rss",
"print"
],
"page": [
"html",
"rss",
"print"
],
"section": [
"html",
"rss",
"print"
]
}
}
By default this adds a printer ay'con 'n th' topbar but can be deactived. Click'n it switches t' print preview, show'n th' plank an' its vis'ble subpages 'n a printer-friendly format. Use yer browser’s print funct'n t' print or save as PDF.
Th' URL won’t be configured ugly fer Hugo’s URL handl'n, even wit' uglyURLs=true
'n hugo.toml
. This be because each mime type can only have one suffix.
If ye don’t like th' URLs, ye can reconfigure outputFormats.print
'n yer hugo.toml
t' someth'n other than th' default o':
[outputFormats]
[outputFormats.print]
baseName = 'index.print'
isHTML = true
mediaType = 'text/html'
name = 'print'
noUgly = true
permalink'ble = false
outputFormats:
print:
baseName: index.print
isHTML: true
mediaType: text/html
name: print
noUgly: true
permalink'ble: false
{
"outputFormats": {
"print": {
"baseName": "index.print",
"isHTML": true,
"mediaType": "text/html",
"name": "print",
"noUgly": true,
"permalinkable": false
}
}
}
Marrrkdown Support
En'ble support t' show th' Marrrkdown source o' a plank. Add th' markdown
output format t' yer home, section, an' plank 'n hugo.toml
:
[outputs]
home = ['html', 'rss', 'markdown']
plank = ['html', 'rss', 'markdown']
section = ['html', 'rss', 'markdown']
outputs:
home:
- html
- rss
- markdown
plank:
- html
- rss
- markdown
section:
- html
- rss
- markdown
{
"outputs": {
"home": [
"html",
"rss",
"markdown"
],
"page": [
"html",
"rss",
"markdown"
],
"section": [
"html",
"rss",
"markdown"
]
}
}
By default this adds a Marrrkdown ay'con 'n th' topbar but can be deactived. Click'n it switches t' th' Marrrkdown source includ'n th' title o' th' plank.
Th' markdown
output format configurat'n be provided by Cap'n Hugo.
Source Support
En'ble support t' show th' source code o' a plank if it was generated from a file. Add th' source
output format t' yer home, section, an' plank 'n hugo.toml
:
[outputs]
home = ['html', 'rss', 'source']
plank = ['html', 'rss', 'source']
section = ['html', 'rss', 'source']
outputs:
home:
- html
- rss
- source
plank:
- html
- rss
- source
section:
- html
- rss
- source
{
"outputs": {
"home": [
"html",
"rss",
"source"
],
"page": [
"html",
"rss",
"source"
],
"section": [
"html",
"rss",
"source"
]
}
}
By default this adds a Source ay'con 'n th' topbar but can be deactived. Click'n it switches t' th' source code o' th' plank.
Th' Source output format differs from th' Marrrkdown format, as it prints th' source code as be includ'n th' front matter.
Th' URL won’t be configured ugly fer Hugo’s URL handl'n, even wit' uglyURLs=true
'n hugo.toml
. This be because each mime type can only have one suffix.
If ye don’t like th' URLs, ye can reconfigure outputFormats.source
'n yer hugo.toml
t' someth'n other than th' default o':
[outputFormats]
[outputFormats.source]
baseName = 'index.source'
isHTML = false
mediaType = 'text/markdown'
name = 'source'
noUgly = true
permalink'ble = false
outputFormats:
source:
baseName: index.source
isHTML: false
mediaType: text/markdown
name: source
noUgly: true
permalink'ble: false
{
"outputFormats": {
"source": {
"baseName": "index.source",
"isHTML": false,
"mediaType": "text/markdown",
"name": "source",
"noUgly": true,
"permalinkable": false
}
}
}