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 o' th' plank.
Th' markdown
output format configurat'n be provided by Cap'n Hugo.