Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(liquid): Make page variables future-proof
This is a part of #257 Attributes from a page are now under the `page` object - `path` -> `page.permalink` to make it clear this is the equivelant of `permalink` in the frontmatter - `source` -> `page.file.permalink` - Under `file` to make room for `page.file.parent` - `permalink for consitency with `page.permalink` - `date` -> `page.published_date` - Consistency with the new `published_date` in the front matter - Both are renamed to make it clear the role of the date (versus a future `modified_date` that might exist) - `draft` -> `page.is_draft` - `previous` -> `page.previous` - `next` -> `page.next` - Custom fields have moved from `<field>` to `page.data.<field>`. BREAKING CHANGE: Liquid `{{ variables }}` have been renamed. `cobalt migrate` will fix some. `cobalt build` will most likely fail on variables missed by `cobalt migrate`.
- Loading branch information
Showing
136 changed files
with
404 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.