--- layout: docs title: Collections permalink: /docs/collections/ ---
This is an experimental feature and the API may change until the feature stabilizes.
The folder must be named identically to the collection you defined in
your _config.yml
file, with the addition of the preceding _
character.
Files in collections that do not have front matter are treated as static files and simply copied to their output location without processing.
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. |
|
An array of static files in the collection. |
|
The path to the collection'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, Jekyll will not generate the file in your collection. 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. |
Performed by {{ album.artist }}{% if album.director %}, directed by {{ album.director }}{% endif %}
{% for work in album.works %}Composed by {{ work.composer }}