_blogs: Don't run the whole _blogs function if there are no blogs

This commit is contained in:
Stig-Ørjan Smelror 2024-02-03 20:09:27 +01:00
parent ee6ff7e65c
commit cf1effeb39

5
qsgen2
View File

@ -464,6 +464,11 @@ function _pages() {
function _blogs() { function _blogs() {
# This function either generates blog files or exports metadata based on the argument # 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" _msg other "Generating Blogs"
local debug=false local debug=false