Shortcodes
The two shortcodes Fieldnotes adds, and their options.
gallery
A folder of photos and videos next to the page, as a row that opens in the viewer. Photo galleries explains it.
{{< gallery >}}
{{< gallery "lakes" >}}| Option | Default | |
|---|---|---|
| the folder’s name | gallery | a folder next to the page’s index.md |
Alt text, captions and places come from photos.yaml next to the folder.
trip-map
A route on a map. Trip maps explains it.
{{< trip-map geojson="route.geojson" caption="Eight days on foot" >}}| Option | Default | |
|---|---|---|
geojson | none | the route: a GeoJSON file next to the page, in assets/ or in static/ |
caption | none | text under the map |
style | params.map.style | a MapTiler style or a style.json address, for light mode |
styleDark | params.map.styleDark | the same for dark mode |
Hugo’s own
Hugo’s built-in shortcodes work too: youtube, vimeo, figure, highlight, details and more. See
Hugo’s shortcodes (opens in a new tab).