Skip to content

Commit

Permalink
Docs update for 11ty/eleventy#915
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Sep 27, 2021
1 parent 17920c6 commit b03d1e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_includes/datasources.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ When the data is merged in the {% if page.url != "/docs/data-cascade/" %}[Eleven

1. [Computed Data](/docs/data-computed/){% if page.url == "/docs/data-computed/" %} ⬅{% endif %}
1. [Front Matter Data in a Template](/docs/data-frontmatter/){% if page.url == "/docs/data-frontmatter/" %} ⬅{% endif %}
1. [Front Matter Data in Layouts](/docs/layouts/#front-matter-data-in-layouts){% if page.url == "/docs/layouts/" %} ⬅{% endif %}
1. [~~Front Matter Data in Layouts~~](/docs/layouts/#front-matter-data-in-layouts) _(only in 0.x)_{% if page.url == "/docs/layouts/" %} ⬅{% endif %}
1. [Template Data Files](/docs/data-template-dir/){% if page.url == "/docs/data-template-dir/" %} ⬅{% endif %}
1. [Directory Data Files (and ascending Parent Directories)](/docs/data-template-dir/){% if page.url == "/docs/data-template-dir/" %} ⬅{% endif %}
1. [Front Matter Data in Layouts](/docs/layouts/#front-matter-data-in-layouts) _(moved in 1.0)_{% if page.url == "/docs/layouts/" %} ⬅{% endif %}
1. [Global Data Files](/docs/data-global/){% if page.url == "/docs/data-global/" %} ⬅{% endif %}
1. [Custom Global Data](/docs/data-global-custom/){% if page.url == "/docs/data-global-custom/" %} ⬅{% endif %}
2 changes: 2 additions & 0 deletions src/docs/layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ In [Eleventy’s Data Cascade](/docs/data/), front matter data in your template

Front matter data set in a content template takes priority over layout front matter! [Chained layouts](/docs/layout-chaining/) have similar merge behavior. The closer to the content, the higher priority the data.

{% callout "info" %}The placement in the data cascade for frontmatter data in layouts changed in 1.0! Take note of the new order below.{% endcallout %}

### Sources of Data

{% include "datasources.md" %}
Expand Down

0 comments on commit b03d1e1

Please sign in to comment.