From d534e2676f3e9174ecbf15ce5ac6df9a4b0280a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sun, 4 Feb 2024 16:54:08 +0100 Subject: [PATCH] _blogs: Let's try using Zsh for date replacements --- qsgen2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index 20f98a5..4eb6fea 100755 --- a/qsgen2 +++ b/qsgen2 @@ -617,14 +617,14 @@ function _blogs() { echo "${blog_tpl}" | \ perl -pe "\ s|BLOGTITLE|${btitle}|g; \ - s|CALADAY|${sdate[1]}|g; \ - s|CALNDAY|${sdate[4]}|g; \ - s|CALMONTH|${sdate[3]}|g; \ - s|CALYEAR|${sdate[2]}|g; \ s|BLOGURL|${blog_url}|g; \ s|\QINGRESS\E|${ingress}|g; \ s|\QBODY\E|${body}|g \ ") + blog_content="${blog_content//CALNDAY/${sdate[4]}}" + blog_content="${blog_content//CALYEAR/${sdate[2]}}" + blog_content="${blog_content//CALMONTH/${sdate[3]}}" + blog_content="${blog_content//CALADAY/${sdate[1]}}" if (${debug}) _msg debug "_blogs: Running function $engine for ${blog}" if [[ ${file_ext} == "qst" ]]; then