_blog_idx_for_index: Run engine on content to catch QStags in Ingress

This commit is contained in:
Stig-Ørjan Smelror 2024-02-05 18:43:49 +01:00
parent bd6da5ea27
commit 7a754b46d6

5
qsgen2
View File

@ -10,7 +10,7 @@
# https://github.com/kekePower/qsgen2/ # https://github.com/kekePower/qsgen2/
# #
VERSION="0.3.1" # Mon-2024-02-05 VERSION="0.3.2" # Mon-2024-02-05
QSGEN="Quick Site Generator 2" QSGEN="Quick Site Generator 2"
# Set to true or false # Set to true or false
@ -745,6 +745,9 @@ function _blog_idx_for_index() {
done done
unset sdate btitle ingress url unset sdate btitle ingress url
if (${debug}) _msg debug "_blog_idx_for_index: Running ${engine} on content to catch QStags in Ingress"
blog_list_content=$( ${engine} ${blog_list_content} )
if (${debug}) _msg debug "_blog_idx_for_index: Writing _blog_idx_for_index to file: ${project_dir}/blog/index.tmp.html" if (${debug}) _msg debug "_blog_idx_for_index: Writing _blog_idx_for_index to file: ${project_dir}/blog/index.tmp.html"
if (${debug}) _msg debug "_blog_idx_for_index: blog_list_content = ${blog_list_content}" if (${debug}) _msg debug "_blog_idx_for_index: blog_list_content = ${blog_list_content}"
echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html