This is a sample site for an adventure trekking company written in the Origami language.
This sample shows the use of a separate template language, Handlebars, in an Origami site.
Origami itself is a a powerful template language, but if you're more comfortable with a different template language, it's possible to write a custom file handler so that Origami knows how to invoke templates in that language. This sample does that using an Origami extension that defines a handler for Handlebars templates.
The site.ori file orchestrates the construction of the site:
- Trek descriptions in the
src/descriptions
folder include markdown with YAML front matter. - The complete set of trek descriptions is used to generate the site's Treks area: one page for each trek, as well as an area home page showing the complete list.
- A subset of trek descriptions are fed to the index.hbs template so that it can show those as featured treks.
- The site's Gallery page wants to show all of the images in the
src/assets/images/trips
folder. Thesite.ori
file gets the list of images in that folder, then hands it to a template to generate the Gallery page.
The site's visual style is based on the Dolomia WordPress Theme but completely rewritten to use more contemporary CSS.