--- layout: docs title: Collections prev_section: variables next_section: datafiles permalink: /docs/collections/ ---
This is an experimental feature and that the API may likely change until the feature stabilizes.
Variable | Description |
---|---|
|
Label of the containing collection |
|
Path to the document relative to the collection's directory |
|
Extension of the output file |
Variable | Description |
---|---|
|
The name of your collection, e.g. |
|
An array of documents. |
|
The path to the collections's source directory, relative to the site source. |
|
The full path to the collections's source directory. |
|
Whether the collection's documents will be output as individual files. |
Variable | Description |
---|---|
|
The (unrendered) content of the document. If no YAML front-matter is provided, this is the entirety of the file contents. If YAML front-matter is used, then this is all the contents of the file after the terminating `---` of the front-matter. |
|
The rendered output of the document, based on the |
|
The full path to the document's source file. |
|
The path to the document's source file relative to the site source. |
|
The URL of the rendered collection. The file is only written to the
destination when the name of the collection to which it belongs is
included in the |
|
The name of the document's collection. |