Enhancers
An enhancer is a file extension that triggers behavior beyond simple file
serving. Each enhancer file’s body is YAML — plain text, no build step. All four
covered here are hidden from normal listings by default (per
Hidden Items, .ftr and
.cut are hidden by extension; .link and .pop are ordinary visible files).
[Source: docs/spec/SPEC-conventions.md §3]
.link — external hyperlink
Section titled “.link — external hyperlink”Directorycontent/examples/
Directory02_popups_links_shortcuts/
- area17.com.link
area17.com.link:
target: _blankurl: http://www.area17.comcomment: Example link to an external website.Result: renders as a hyperlink to url, opening in the tab/window specified by
target, with comment shown as the listing description.
.pop — popup window
Section titled “.pop — popup window”Directorycontent/examples/
Directory02_popups_links_shortcuts/
- giant_step_jukebox.pop
giant_step_jukebox.pop:
url: http://jukebox.giantstep.net/playerwidth: 494height: 560style: WINDOWcomment: Example link within a pop-up window.Result: renders a link that opens url in a new browser window sized
width × height, using the given window chrome style.
[Source: docs/spec/SPEC-conventions.md §3.5]
.cut — shortcut
Section titled “.cut — shortcut”Directorycontent/examples/
- hiding_content.cut
Directory02_popups_links_shortcuts/
- internal-shortcut.cut
internal-shortcut.cut:
name: internal shortcutdirectory: -hiddenResult: builds a “related” listing entry named name, pointing at the local
directory (or an external url, if set instead). This is how a folder can
surface a link to a sibling -hidden/ folder that wouldn’t otherwise appear in
the listing. [Source: docs/spec/SPEC-conventions.md §3.1]
.ftr — feature card
Section titled “.ftr — feature card”Directorycontent/examples/
Directory03_featuring_content/
- featured_file.ftr
- featured-file.txt
- featured_folder.ftr
Directoryfeatured_folder/
- …
- featured-link.ftr
Directory-thumbnails-custom/
- …
featured_folder.ftr:
title: Featured Folderfolder: featured_folderimage: -thumbnails-custom/folder_thumbnail.pngwidth: 250height: 230description:> You can feature a folder in the same folder. By doing so, the folder will not appear in the listing below.Result: renders a feature card with title, a thumbnail from image, sized
width × height, and description as body text. The card links to whatever the
.ftr file references — folder, file, or link — and that referenced
item is excluded from the normal file listing below the feature card, since it’s
now presented as the feature itself. [Source: docs/spec/SPEC-conventions.md §3.2]