about summary refs log tree commit diff stats
path: root/src/domain
diff options
context:
space:
mode:
Diffstat (limited to 'src/domain')
-rw-r--r--src/domain/posts.js2
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