diff --git a/LICENSE.txt b/LICENSE.txt index 3970c6f..25e4319 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022-2023 Paul W. +Copyright (c) 2022-2024 Paul W. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f9e24c7..d280373 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ # PaulW.XYZ -A [Next.js](https://nextjs.com) website that mainly involves generating content out of a bunch of markdown files contained in `notes/` and `posts/` which contain rough, unorganized yet useful information and thought-out articles respectively. It's still a work in progress as I have no clear direction I want to take this site toward. However, it is something that I will always keep in check; as I use this as a hub for whatever I work on, especially if it involves a lot of reading. - -## License +A [Next.js](https://nextjs.com) website that mainly involves generating content out of a bunch of markdown files contained in `notes/` and `posts/` which contain rough, unorganized yet useful information and thought-out articles respectively. +## Third-Party Licenses Any trademarks listed on this site are the property of their respective owners. This site neither endorses nor is affiliated with any of the owners. Any source code available on any of the pages is without warranty of any kind and the use of such is at your own risk. -### Third-party -#### Fonts +### Fonts -- [Hack](https://github.com/source-foundry/Hack) - - © 2018 Source Foundry Authors - - MIT License -- [Cantarell](https://github.com/davelab6/cantarell) - - © 2009-2010, [Understanding Limited](mailto:dave@understandinglimited.com) - - Open Font License, Version 1.1 -- [EB Garamond](https://github.com/georgd/EB-Garamond) - - © 2010-2013 [Georg Duffner](http://www.georgduffner.at) - - Open Font License, Version 1.1 +[Hack](https://github.com/source-foundry/Hack) +- © 2018 Source Foundry Authors +- MIT License + +[Cantarell](https://github.com/davelab6/cantarell) +- © 2009-2010, [Understanding Limited](mailto:dave@understandinglimited.com) +- Open Font License, Version 1.1 + +[EB Garamond](https://github.com/georgd/EB-Garamond) +- © 2010-2013 [Georg Duffner](http://www.georgduffner.at) +- Open Font License, Version 1.1 diff --git a/bun.lockb b/bun.lockb index 238df2d..ee88013 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/recent-notes.tsx b/components/recent-notes.tsx index b3be0df..26b09b4 100644 --- a/components/recent-notes.tsx +++ b/components/recent-notes.tsx @@ -2,20 +2,28 @@ import Link from "next/link"; import NotesInfo from '../public/notes.json'; function RecentNotes() { - const notes = Object.entries(NotesInfo).reverse(); + const notes = Object.entries(NotesInfo) + .map(([slug, note]) => { + return { + slug, + title: note.title, + mtime: new Date(note.mtime) + } + }) + .sort( + (a, b) => { + return b.mtime.getTime() - a.mtime.getTime(); + } + ); return ( -