_pages: Do the same for pages

This commit is contained in:
Stig-Ørjan Smelror 2024-02-03 20:16:21 +01:00
parent fffa3ab726
commit 09d1b681a8

9
qsgen2
View File

@ -338,14 +338,19 @@ function _file_to_lower() {
function _pages() { function _pages() {
# This function generates all the new and updated Pages # This function generates all the new and updated Pages
_msg other "Generating Pages"
local debug=false local debug=false
# Load the cache for Pages # Load the cache for Pages
if (${debug}) _msg debug "_pages: Running function _pages_cache" if (${debug}) _msg debug "_pages: Running function _pages_cache"
_pages_cache _pages_cache
if [[ ${no_pages_found} == "true" ]]; then
_msg std "* You do not have any pages *"
return
fi
_msg other "Generating Pages"
if (( ${#pages_array[@]} > 0 )); then if (( ${#pages_array[@]} > 0 )); then
# If pages_array is not empty, we do work # If pages_array is not empty, we do work