From 0999ab2dcebf3612497ce508623e6615b39ab30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 13:17:37 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index 29ffef9..0794e20 100755 --- a/qsgen2 +++ b/qsgen2 @@ -554,12 +554,12 @@ function _blog_idx_for_index() { URL:*) url=${component#URL: } ;; esac - adate=( ${sdate} ) + local -a adate=( ${sdate} ) bdate="${adate[1]} - ${adate[4]}/${adate[3]}/${adate[2]}" blog_list_content=$(echo "${blog_list}" | perl -pe "s|BLOGURL|${url}|g") - blog_list_content=$(echo "${blog_list}" | perl -pe "s|BLOGTITLE|${btitle}|g") - blog_list_content=$(echo "${blog_list}" | perl -pe "s|INGRESS|${ingress}|g") - blog_list_content=$(echo "${blog_list}" | perl -pe "s|BLOGDATE|${bdate}|g") + blog_list_content=$(echo "${blog_list_conten}" | perl -pe "s|BLOGTITLE|${btitle}|g") + blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|INGRESS|${ingress}|g") + blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|BLOGDATE|${bdate}|g") echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html