Update guides sort order
This commit is contained in:
@@ -3,7 +3,12 @@ import authors from "data/authors";
|
||||
import siteConfig from "data/site";
|
||||
|
||||
export const getAllGuides = () => {
|
||||
return guides;
|
||||
return guides.filter(guide => !guide.draft)
|
||||
.sort((a, b) => new Date(b.updatedAt) - new Date(a.updatedAt));
|
||||
};
|
||||
|
||||
export const getFeaturedGuides = () => {
|
||||
return getAllGuides().filter(guide => guide.featured);
|
||||
};
|
||||
|
||||
export const getRequestedGuide = req => {
|
||||
|
Reference in New Issue
Block a user