Subprojects

2 minutes read

The subprojects feature is designed to showcase the capabilities of a project, but it can be used for many other purposes as well. Check out the demo here.

To create a collection of subprojects, start with a Zola section. Set the following front matter variables:

template = "subproject_list.html"
page_template = "subproject.html"

Then, add pages. Make sure to set the preview front matter variable if you want to include a preview picture in the collection.

Options

Use the default Zola section front matter variables to configure the subprojects collection. In addition to the default front matter variables for pages, Duckling provides some additional variables that can be set under [extra]:

The following options are available in the [extra.comments] section:

Example

The code for the sample subproject collection can be used as a reference or as a starting point. It is available in the project’s source code.