From bfaa8b2fa5a40727ba73f5b5779f52e81f222b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 13:09:42 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index f5d4416..b50711a 100755 --- a/qsgen2 +++ b/qsgen2 @@ -553,7 +553,7 @@ function _blog_idx_for_index() { INGRESS:*) ingress=${component#INGRESS: } ;; URL:*) url=${component#URL: } ;; esac - done + bdate="${sdate[1]} - ${sdate[4]}/${sdate[3]}/${sdate[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") @@ -561,6 +561,8 @@ function _blog_idx_for_index() { blog_list_content=$(echo "${blog_list}" | perl -pe "s|BLOGDATE|${bdate}|g") echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html + + done done }