--- 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. |
|
The document's base filename, with every sequence of spaces and non-alphanumeric characters replaced by a hyphen. |
|
The document's lowercase title (as defined in its front matter), with every sequence of spaces and non-alphanumeric characters replaced by a hyphen. If the document does not define a title in its front matter, this is equivalent to |
|
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. |