diff options
author | Alan Pearce | 2017-07-20 18:08:12 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-20 18:08:12 +0200 |
commit | 7bf25f232569aa62edf1c88e7014a9f3c1b37014 (patch) | |
tree | 7d7d40cfa295c405427cb3bc859757b1effb0e71 /src/domain | |
parent | a62fb1e7584ffa53a256ff8ce4d6a451ca542f20 (diff) | |
download | homestead-7bf25f232569aa62edf1c88e7014a9f3c1b37014.tar.lz homestead-7bf25f232569aa62edf1c88e7014a9f3c1b37014.tar.zst homestead-7bf25f232569aa62edf1c88e7014a9f3c1b37014.zip |
feat: Create feed handler for root
Diffstat (limited to 'src/domain')
-rw-r--r-- | src/domain/posts.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/domain/posts.js b/src/domain/posts.js index 98488ba..ab35518 100644 --- a/src/domain/posts.js +++ b/src/domain/posts.js @@ -86,7 +86,9 @@ function taxonomise(taxonomies, posts) { 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 |