Skip to content

Commit

Permalink
Merge pull request #76 from calimania/issue-47-update-pages
Browse files Browse the repository at this point in the history
Issue 47 update pages
  • Loading branch information
prorene authored Jan 27, 2025
2 parents 3174c91 + 86245c0 commit c551a11
Show file tree
Hide file tree
Showing 2 changed files with 5,020 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/pages.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ const store = stores.find(
let pages = await getCollection("pages");
pages = pages
.sort(
(a, b) =>
new Date(b.data.createdAt).getTime() -
new Date(a.data.createdAt).getTime()
)
.sort((a, b) => b.data.Title.localeCompare(a.data.Title))
.filter(
page =>
page.data.Active && !["about", "home", "receipt"].includes(page.data.slug)
Expand Down
Loading

0 comments on commit c551a11

Please sign in to comment.