- Minifies rendered documents
- Minifies js, and css assets
Minification is disabled by default, for backward and text compatibility. This can be changed on an extension-by-extension basis.
This doesn't touch the unused config crate.
BREAKING CHANGE: Old-style frontmatter is removed and some config keys
are renamed:
- Sort Order: Asc / Desc were lowercased
- Sass Style: Nested / Expanded / Compact / Compressed were lowercased
- Pagination: All, Tags, Categories, Dates were lowercased
The tests are now operating in a more standard use case thanks to the
ability to easily setup. The are running in the CWD rather than all the
paths artifically being set.
Fixes#381
The test was re-worked to better describe what its actually testing.
Later, when we have better file system test utilities (see the CLI WG),
we can actually make a test focused on what this test was meant to
cover.
Features
* Provide context on errors (good enough for #136)
* Implement basic `compact` support
Bug Fixes
* `date_in_tz` can't parse cobalt's dates
* Improve value coercion practices
* Every `Value` is now treated as a string.
* Whole numbers are now preserved.
* Whole numbers can convert to fractional numbers but not the other way
around.
* You can convert a fractional number to a whole number using the
filters `round`, `ceil`, or `floor`.
* Operations on only whole numbers preserve their whole number nature.
* for tag ranges, indexing, etc only accept whole numbers
Fixes#136
BREAKING CHANGES: There might be minor behavior changes form the coercion
changes.
`page.collection` contains the collection slug which is `posts` for,
well, the built-in posts collection.
`collections.posts.pages` is a sorted list of all of the pages that are
part of the posts collection.
Fixes#323
BREAKING CHANGES:
`page.is_post` is replaced by `page.collection`. Generally, it'll look like
`{% if page.is_post %}`
and can be replaced by
`{% if page.collection == "posts" %}`
`posts` is replaced by `collections.posts.pages`. Generally, it'll look
like
`{% for post in posts %}`
and can be replaced by
`{% for post in collections.posts.pages %}`
`cobalt migrate` should do this for you.
Fixes#349
BREAKING CHANGE:
Frontmatter `published_date` switched from "29 December 2016 15:20:21
-0700" to "2016-12-29 15:20:21 -0700".
`cobalt migrate` should handle this for you.