From 8f943e47a0b435df22b8fa94cbf10a24b37df1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 14:32:17 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 9d4dbd1..0ad337d 100755 --- a/qsgen2 +++ b/qsgen2 @@ -535,7 +535,7 @@ function _blog_idx_for_index() { # We use _blogs to get the data to create the blog index _blogs get_index - debug=true + local debug=true #if [[ ${updated_blogs} = "true" ]]; then @@ -546,6 +546,7 @@ function _blog_idx_for_index() { for meta_str in ${BLOG_META_STR_ARRAY[@]} do + local debug=true # Split meta_str into individual metadata components local -a meta_array=("${(@s/||/)meta_str}") @@ -558,6 +559,7 @@ function _blog_idx_for_index() { # Iterate over each component and extract information if (${debug}) echo "${red}_blog_idx_for_index: Iterate over each component and extract information${end}" for component in "${meta_array[@]}"; do + local debug=true case "${component}" in SDATE:*) sdate=${component#SDATE: } ;; BTITLE:*) btitle=${component#BTITLE: } ;;