diff --git a/scripts/blog.js b/scripts/blog.js index 82cefa7..f4e6038 100644 --- a/scripts/blog.js +++ b/scripts/blog.js @@ -44,6 +44,9 @@ function populateBlog(json, cat) { } } } + + if (!archive.html()) + archive.html(`There are no archived ${cat} posts.`); } function addCatButton(json, cats, cat) {