feat: want to read page

This commit is contained in:
Cory Dransfeldt 2024-04-22 11:49:03 -07:00
parent 2d674ebfb2
commit f85aff112b
No known key found for this signature in database
8 changed files with 36 additions and 6 deletions

View file

@ -110,6 +110,8 @@ export const tagsSortedByCount = (collection) => {
export const links = (collection) => collection.getFilteredByGlob('src/links/**/*.*').reverse()
export const booksToRead = (collection) => collection.getAll()[0].data.books.filter(book => book.status === 'want to read').sort((a, b) => a['title'].toLowerCase().localeCompare(b['title'].toLowerCase()))
export const postStats = (collection) => {
const oneDayMilliseconds = 1000 * 60 * 60 * 24
const statsObject = {