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.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,
|
||||||
|
|||||||
File renamed without changes.
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
"slides"
|
"slide"
|
||||||
],
|
],
|
||||||
"permalink": false
|
"permalink": false
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user