From fffa3ab7260417255889d9bd7cfc64801fa901ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 20:13:56 +0100 Subject: [PATCH] _blogs: Placement, dude. Placement. --- qsgen2 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/qsgen2 b/qsgen2 index f369ac1..1209960 100755 --- a/qsgen2 +++ b/qsgen2 @@ -463,19 +463,20 @@ 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." - continue - fi - - _msg other "Generating Blogs" local debug=false # Running function _list_blogs if (${debug}) _msg debug "_blogs: Running function _list_blogs" _list_blogs + + if [[ ${no_blogs_found} == "true" ]]; then + _msg std "* You do not have any blogs *" + return + fi + + _msg other "Generating Blogs" + # Running function _blog_cache if (${debug}) _msg debug "_blogs: Running function _blog_cache" _blog_cache