From cf1effeb3904098251cac894ef8203b3fb36bebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 20:09:27 +0100 Subject: [PATCH] _blogs: Don't run the whole _blogs function if there are no blogs --- qsgen2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qsgen2 b/qsgen2 index 9d31584..dc4b553 100755 --- a/qsgen2 +++ b/qsgen2 @@ -464,6 +464,11 @@ function _pages() { function _blogs() { # This function either generates blog files or exports metadata based on the argument + if [[ ${no_blogs_found} == "true" ]]; then + _msg std "You do not have any blogs." + return + fi + _msg other "Generating Blogs" local debug=false