Skip to content

Commit

Permalink
Adds eleventyImportCollections 11ty/eleventy#975
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 16, 2022
1 parent 157d7e5 commit 88017e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/docs/data-configuration.md
Expand Up @@ -9,13 +9,17 @@ eleventyNavigation:
There are a few special data keys you can assign in your data to control how templates behave. These can live anywhere in the [Data Cascade](/docs/data-cascade/).

* `permalink`: Change the output target of the current template. Normally, you cannot use template syntax to reference other variables in your data, but `permalink` is an exception. [Read more about Permalinks](/docs/permalinks/).
* `dynamicPermalink`: Option to disable template syntax for the `permalink` key. [Read more](/docs/permalinks/#disable-templating-in-permalinks).
* `permalinkBypassOutputDir`: Write a file to somewhere other than the output directory. [Read more](/docs/permalinks/#ignore-the-output-directory)
* `layout`: Wrap current template with a layout template found in the `_includes` folder. [Read more about Layouts](/docs/layouts/).
* `pagination`: Enable to iterate over data. Output multiple HTML files from a single template. [Read more about Pagination](/docs/pagination/).
* `tags`: A single string or array that identifies that a piece of content is part of a collection. Collections can be reused in any other template. [Read more about Collections](/docs/collections/).
* `date`: Override the default date (file creation) to customize how the file is sorted in a collection. [Read more at Content Dates](/docs/dates/).
* `templateEngineOverride`: Override the template engine on a per-file basis. [Read more about Changing a Template’s Rendering Engine](/docs/languages/#overriding-the-template-language). [_This option only works in Front Matter ⚠️ (for now), read Issue #445_](https://github.com/11ty/eleventy/issues/445).
* `eleventyExcludeFromCollections`: {% addedin "0.8.0" %} Set to `true` to exclude this content from any and all [Collections](/docs/collections/) (those tagged in data or setup using the Configuration API).
* `eleventyComputed`: {% addedin "0.11.0" %} Programmatically set data values based on other values in your data cascade. Read more about [Computed Data](/docs/data-computed/).
* `eleventyNavigation`: Used on the [Navigation plugin](/docs/plugins/navigation/#adding-templates-to-the-navigation).
* `eleventyNavigation`: Used on the [Navigation plugin](/docs/plugins/navigation/#adding-templates-to-the-navigation).

## Advanced

* `eleventyImportCollections`: {% addedin "2.0.0-canary.20" %}Used to inform template dependencies for incremental builds and to render templates in the correct order. Read more about [importing collections](https://github.com/11ty/eleventy/issues/975)
* `dynamicPermalink`: Option to disable template syntax for the `permalink` key. Read more about [disabling dynamic permalinks](/docs/permalinks/#disable-templating-in-permalinks).
* `permalinkBypassOutputDir`: Write a file to somewhere other than the output directory. Read more about [bypassing the output directory](/docs/permalinks/#ignore-the-output-directory)

0 comments on commit 88017e0

Please sign in to comment.