diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-06-16 15:43:50 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-06-18 09:09:56 +0200 |
commit | fc045e12a953aac88b942c25b958c5c0554b252b (patch) | |
tree | ad8e171d0730f55eb9a531c1a9f0a8dfb51065ad /docs/layouts | |
parent | 9679023f2b0d7c55b70f23fd94603f301a841079 (diff) |
Rename taxonomy kinds from taxonomy to term, taxonomyTerm to taxonomy
And we have taken great measures to limit potential site breakage:
* For `disableKinds` and `outputs` we try to map from old to new values if possible, if not we print an ERROR that can be toggled off if not relevant.
* The layout lookup is mostly compatible with more options for the new `term` kind.
That leaves:
* Where queries in site.Pages using taxonomy/taxonomyTerm Kind values as filter.
* Other places where these kind value are used in the templates (classes etc.)
Fixes #6911
Fixes #7395
Diffstat (limited to 'docs/layouts')
-rw-r--r-- | docs/layouts/shortcodes/content-tree.html | 14 | ||||
-rw-r--r-- | docs/layouts/shortcodes/page-kinds.html | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/docs/layouts/shortcodes/content-tree.html b/docs/layouts/shortcodes/content-tree.html new file mode 100644 index 000000000..0cb527cb5 --- /dev/null +++ b/docs/layouts/shortcodes/content-tree.html @@ -0,0 +1,14 @@ +<div class="code"> + <pre><code> + ├── blog + │ ├── _index.md [section] + │ ├── first-post.md [page] + │ └── second-post + │ ├── index.md [page bundle] + │ └── photo.jpg [page resource] + └── tags + ├── _index.md [taxonomy] + └── funny + └── _index.md [term] + </code></pre> +</div>
\ No newline at end of file diff --git a/docs/layouts/shortcodes/page-kinds.html b/docs/layouts/shortcodes/page-kinds.html new file mode 100644 index 000000000..f6cb288af --- /dev/null +++ b/docs/layouts/shortcodes/page-kinds.html @@ -0,0 +1,7 @@ +| Kind | Description | Example | +|----------------|--------------------------------------------------------------------|-------------------------------------------------------------------------------| +| `home` | The landing page for the home page | `/index.html` | +| `page` | The landing page for a given page | `my-post` page (`/posts/my-post/index.html`) | +| `section` | The landing page of a given section | `posts` section (`/posts/index.html`) | +| `taxonomy` | The landing page for a taxonomy | `tags` taxonomy (`/tags/index.html`) | +| `term ` | The landing page for one taxonomy's term | term `awesome` in `tags` taxonomy (`/tags/awesome/index.html`) |
\ No newline at end of file |