From 9bc79413156ad571772fa3297115fb1a104e7fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 23:02:24 +0100 Subject: [PATCH] Move around the workflow --- qsgen2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index d9a6ada..bd9842b 100755 --- a/qsgen2 +++ b/qsgen2 @@ -318,10 +318,6 @@ function _pages() { if (${debug}) echo "_pages: Removing #title line from page_content" page_content=$( echo ${page_content} | grep -v \#title ) - # HTML'ify the page content - if (${debug}) echo "_pages: Running engine on page_content" - page_content=$( ${engine} ${page_content} ) - # Insert page_content into pages_tpl by replacing the BODY tag present there pages_tpl=$( sed -e "s|BODY|${page_content}|" ${pages_tpl} ) @@ -344,6 +340,10 @@ function _pages() { pages_title_lower=$( _file_to_lower "${pages_in_array}" ) echo "${pages_tpl}" > ${www_root}/${pages_in_array%.*}.html + # HTML'ify the page content + if (${debug}) echo "_pages: Running engine on ${www_root}/${pages_in_array%.*}.html" + page_content=$( ${engine} ${www_root}/${pages_in_array%.*}.html ) + # Look for links, images and videos and convert them if present. if (${debug}) echo "_pages: Checking for #link, #showimg and #ytvideo in page_content" if [[ $( grep \#link ${page_content} ) ]]; then