Fix slide ordering

This commit is contained in:
Lewis Dale 2023-10-09 09:21:24 +01:00
parent 02580d71a1
commit 4f1fc72228
3 changed files with 7 additions and 1 deletions

View File

@ -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,

View File

@ -1,6 +1,6 @@
{ {
"tags": [ "tags": [
"slides" "slide"
], ],
"permalink": false "permalink": false
} }