Fix slide ordering
This commit is contained in:
parent
02580d71a1
commit
4f1fc72228
@ -9,6 +9,12 @@ module.exports = function (config) {
|
|||||||
|
|
||||||
config.addPassthroughCopy("src/assets");
|
config.addPassthroughCopy("src/assets");
|
||||||
|
|
||||||
|
config.addCollection("slides", function(collectionApi) {
|
||||||
|
return collectionApi.getFilteredByTag("slide").sort((a, b) => {
|
||||||
|
return a.fileSlug.localeCompare(b.fileSlug);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
passthroughFileCopy: true,
|
passthroughFileCopy: true,
|
||||||
dataTemplateEngine: false,
|
dataTemplateEngine: false,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
"slides"
|
"slide"
|
||||||
],
|
],
|
||||||
"permalink": false
|
"permalink": false
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user