From 1f04d97e44b50de9a286f0c527673ae8712cccb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 00:39:30 +0100 Subject: [PATCH] Tidying --- qsgen2 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qsgen2 b/qsgen2 index 859ccfb..69f8bf9 100755 --- a/qsgen2 +++ b/qsgen2 @@ -283,6 +283,12 @@ function _pages() { local debug=true + # Load the cache for Pages + if (${debug}) echo "_pages: Running function _pages_cache" + _pages_cache + + if (( ${#pages_array[@]} > 0 )); then + if (${debug}) echo "_pages: Setting Pages template" local pages=${project_dir}/templates/${theme}/pages.tpl @@ -297,11 +303,6 @@ function _pages() { pages_tpl="$(<${pages})" fi - # Load the cache for Pages - if (${debug}) echo "_pages: Running function _pages_cache" - _pages_cache - - if (( ${#pages_array[@]} > 0 )); then # If pages_array is not empty, we do work if (${debug}) echo "_pages: pages_array is not empty" for pages_in_array in ${pages_array[@]}