From d3ebe92ed71ca5e35c44b0c9f92a90e08271787d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 20 Mar 2021 16:31:03 +0100 Subject: [PATCH] display an info for categories with no archive --- scripts/blog.js | 3 +++ 1 file changed, 3 insertions(+) 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) {