all repos — archive/homestead @ 7bf25f232569aa62edf1c88e7014a9f3c1b37014

My future indieweb platform

feat: Create feed handler for root

Alan Pearce
commit

7bf25f232569aa62edf1c88e7014a9f3c1b37014

parent

a62fb1e7584ffa53a256ff8ce4d6a451ca542f20

1 file changed, 2 insertions(+), 0 deletions(-)

changed files
M src/domain/posts.jssrc/domain/posts.js
@@ -86,7 +86,9 @@
module.exports = async function(config, getURL) { const posts = await getFolder(config.folder, getURL); const taxonomies = taxonomise(config.taxonomies, posts); + const lastPostDate = Math.max(Array.from(posts.values(), p => p.date)); return { + lastPostDate, posts, taxonomies, get