From 18af4c60b2a6ea2e6f7b4f58b91d25928cf7f179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 14:46:39 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qsgen2 b/qsgen2 index 0ad337d..da5ba85 100755 --- a/qsgen2 +++ b/qsgen2 @@ -496,9 +496,9 @@ function _blogs() { BLOG_META_STR_ARRAY=() # Iterate over make_blog_array - for blog in "${make_blog_array[@]}" + for blog in "$( cat ${blog_cache_file} )" do - + local blog=$( echo ${blog} | cut -d: -f1 ) local content="$(<"${blog}")" sdate=( $( echo ${content} | grep DATE | sed "s|DATE\ ||" | sed "s|\-|\ |g" ) ) btitle=$( echo ${content} | grep BLOG_TITLE | cut -d' ' -f2- ) @@ -533,7 +533,7 @@ function _blog_idx_for_index() { # This function generates the file blog/index.tmp.html # We use _blogs to get the data to create the blog index - _blogs get_index + #_blogs get_index local debug=true