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.addCollection("slides", function(collectionApi) {
|
||||
return collectionApi.getFilteredByTag("slide").sort((a, b) => {
|
||||
return a.fileSlug.localeCompare(b.fileSlug);
|
||||
});
|
||||
});
|
||||
|
||||
return {
|
||||
passthroughFileCopy: true,
|
||||
dataTemplateEngine: false,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"tags": [
|
||||
"slides"
|
||||
"slide"
|
||||
],
|
||||
"permalink": false
|
||||
}
|
Loading…
Reference in New Issue
Block a user