Fix slide ordering
This commit is contained in:
1 parent
02580d71a1
commit
4f1fc72228
3 files changed
+7
-1
No files matched your search
@@ -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,
|
||||
|
||||
File renamed without changes.
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"tags": [
|
||||
"slides"
|
||||
"slide"
|
||||
],
|
||||
"permalink": false
|
||||
}
|
||||
Reference in new issue
Block a user