From 3e9add39693bfcd5d3cd823f1daeaa70c56f4198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Wed, 14 Feb 2024 20:24:19 +0100 Subject: [PATCH] _blog_idx_for_index: Trying to speed things up --- qsgen2 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qsgen2 b/qsgen2 index 487467e..11a5f47 100755 --- a/qsgen2 +++ b/qsgen2 @@ -749,7 +749,7 @@ function _blog_idx_for_index() { # Truncate file before writing new one : >| "${project_dir}/blog/index.tmp.html" - if (${debug}) _msg debug "${0:t}_msg_3" " ${BLOG_META_STR_ARRAY[@]}" + # if (${debug}) _msg debug "${0:t}_msg_3" " ${BLOG_META_STR_ARRAY[@]}" for meta_str in ${BLOG_META_STR_ARRAY[@]} do @@ -795,13 +795,11 @@ function _blog_idx_for_index() { done - unset sdate btitle ingress url + unset sdate btitle ingress url adate caladay calyear calmonth calnday done if (${debug}) _msg debug "${0:t}_msg_7" " ${engine} " "${0:t}_msg_7.1" - # Catch any QStags or Markdown in the Ingress - # Got to rework how the engine works. Create a new function to take the blunt of the work. - # function _run_engine() + # Catch any QStags or Markdown in the Ingress blog_list_content=$( _run_engine ${blog_list_content} ) if (${debug}) _msg debug "${0:t}_msg_8" " ${project_dir}/blog/index.tmp.html" #if (${debug}) _msg debug "${0:t}_msg_9" " ${blog_list_content}"