Important notes
Since #1176, we've modified the descending sorting behavior to be -1
instead of 0
to stick with Mongo sort syntax.
- queryContent('/my-directory').sort({ createdAt: 0 })
+ queryContent('/my-directory').sort({ createdAt: -1 })
Features
We added content:file:beforeParse
and content:file:afterParse
hooks to manipulate the data before and after its transformation, you can read more in the advanced section of the documentation. PR #1160 by @farnabaz
Fixes
- fix: ContentQuery
_path
not used properly (#1141) by @GerryWilko in #1143 - fix(frontmatter): issue with windows carriage return by @farnabaz in #1161
- fix: typo that->than, highlight span to improve comprehension by @TheJoeSchr in #1163
- fix(ContentQuery): generate cache key based on props by @farnabaz in #1174
- fix(sort): use
-1
for descending same as mongo syntax by @farnabaz in #1176 - fix(navigation): do not nest home page by @farnabaz in #1179
- fix(sort): convert Date to ISO string by @farnabaz in #1175
- fix(types):
_title
rename totitle
by @cawa-93 in #1181 - fix(query): escape special chars in path by @farnabaz in #1185
Docs
- docs: Update 1.query-content.md by @jhull in #1138
- docs: correct spelling of ContentDoc by @nobkd in #1144
- docs: fix template name by @manniL in #1147
- docs: correctly link to catch-all documentation by @loilo in #1148
- docs: content comment is now link to option docs by @ravenberg in #1150
- docs: typo by @seanghay in #1158
- docs: added information on sitemap generation by @heychazza in #1145
- docs: typo Rendering Doc by @king-11 in #1162
- docs: add
--shamefully-hoist
argument to pnpm install by @Julien-R44 in #1159 - docs: fix querying example route is not defined by @Jclong98 in #1166
- docs: correct path of ContentRenderer source code by @sudhakar-s in #1165
- docs(redirects): remove configuration redirect by @clemcode in #1183
- docs:fixing navigation comments re: default value by @MichaelJolley in #1182
Misc
- chore(deps): update devdependency lint-staged to ^12.4.3 by @renovate in #1173
- chore(deps): update all non-major dependencies by @renovate in #1134
- chore(deps): lock file maintenance by @renovate in #1172
- chore(deps): update devdependency lint-staged to ^12.5.0 by @renovate in #1186
New Contributors
- @jhull made their first contribution in #1138
- @nobkd made their first contribution in #1144
- @GerryWilko made their first contribution in #1143
- @loilo made their first contribution in #1148
- @ravenberg made their first contribution in #1150
- @seanghay made their first contribution in #1158
- @king-11 made their first contribution in #1162
- @Julien-R44 made their first contribution in #1159
- @TheJoeSchr made their first contribution in #1163
- @Jclong98 made their first contribution in #1166
- @sudhakar-s made their first contribution in #1165
- @cawa-93 made their first contribution in #1181
- @MichaelJolley made their first contribution in #1182
- @heychazza made their first contribution in #1145
Full Changelog: 2.0.0...2.0.1