From 15d458b9098da5ec2d23cbbde285dc510791dde4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 12:39:47 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/qsgen2 b/qsgen2 index 41b7c0c..bc94449 100755 --- a/qsgen2 +++ b/qsgen2 @@ -486,11 +486,7 @@ function _blogs() { done else - echo "_blogs: get_index: Date = ${sdate[@]}" - echo "_blogs: get_index: URL = ${blog_url}" - echo "_blogs: get_index: Title = ${btitle}" - echo "_blogs: get_index: Ingress = ${ingress}" - exit + # Declare the array to hold metadata strings for each blog BLOG_META_STR_ARRAY=() @@ -506,6 +502,12 @@ function _blogs() { blog_dir="/blog/${sdate[2]}/${sdate[3]:l}/${sdate[4]}" blog_url="${blog_dir}/${blog_index}.html" + echo "_blogs: get_index: Date = ${sdate[@]}" + echo "_blogs: get_index: URL = ${blog_url}" + echo "_blogs: get_index: Title = ${btitle}" + echo "_blogs: get_index: Ingress = ${ingress}" + exit + if ${debug}; then echo "_blogs: Adding data for ${blog} to array"; fi # Concatenate all metadata into a single string for the current blog