From 3d5d66515762fae4d7f00c9e595ef0845111462d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 12:27:21 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index c0dc8f2..ef7546e 100755 --- a/qsgen2 +++ b/qsgen2 @@ -522,10 +522,11 @@ function _blog_idx_for_index() { for blogs in ${BLOG_META_STR_ARRAY[@]} do - echo ${blogs[URL]} - echo ${blogs[BTITLE]} - echo ${blogs[SDATE[@]]} - echo ${blogs[INGRESS]} + local index_array=("${(@s/||/)blogs}") + echo "1. ${index_array[URL]}" + echo "2. ${index_array[BTITLE]}" + echo "3. ${index_array[SDATE[@]]}" + echo "4. ${index_array[INGRESS]}" done }