Fieldnotesv1.1.2

Shortcodes

The two shortcodes Fieldnotes adds, and their options.

A folder of photos and videos next to the page, as a row that opens in the viewer. Photo galleries explains it.

md
{{< gallery >}}
{{< gallery "lakes" >}}
OptionDefault
the folder’s namegallerya 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.

md
{{< trip-map geojson="route.geojson" caption="Eight days on foot" >}}
OptionDefault
geojsonnonethe route: a GeoJSON file next to the page, in assets/ or in static/
captionnonetext under the map
styleparams.map.stylea MapTiler style or a style.json address, for light mode
styleDarkparams.map.styleDarkthe 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).