From d5ec8b51c8ce62a197930ba1ace6c31531e3cfb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 12:41:06 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qsgen2 b/qsgen2 index bc94449..96044d1 100755 --- a/qsgen2 +++ b/qsgen2 @@ -491,7 +491,8 @@ function _blogs() { BLOG_META_STR_ARRAY=() # Iterate over make_blog_array - for blog in "${make_blog_array[@]}"; do + for blog in "${make_blog_array[@]}" + do local content="$(<"${blog}")" sdate=( $( echo ${content} | grep DATE | sed "s|DATE\ ||" | sed "s|\-|\ |g" ) ) @@ -502,11 +503,11 @@ 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 + #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