mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
localeCompare
This commit is contained in:
parent
192c3b2848
commit
24dd6559a6
1 changed files with 6 additions and 1 deletions
|
|
@ -43,7 +43,12 @@ const config = {
|
|||
id: 'release_notes',
|
||||
path: './release_notes', // Folder where your release notes are stored
|
||||
routeBasePath: '/release_notes', // URL path for the release notes
|
||||
sortPosts: 'descending',
|
||||
sortPosts: (a, b) => {
|
||||
// Extract folder names from the file paths
|
||||
const folderA = a.metadata.permalink.split('/')[2]; // Get folder name from permalink
|
||||
const folderB = b.metadata.permalink.split('/')[2];
|
||||
return folderA.localeCompare(folderB); // Compare folder names
|
||||
},
|
||||
include: ['**/*.md', '**/*.mdx'], // Files to include
|
||||
// Other blog options
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue