_pages: look for file_ex and run engine

This commit is contained in:
Stig-Ørjan Smelror 2024-02-02 10:35:33 +01:00
parent ed3bd3226c
commit f6b0f2e7cf

6
qsgen2
View File

@ -415,7 +415,11 @@ function _pages() {
# HTML'ify the page content # HTML'ify the page content
if (${debug}) _msg debug "_pages: Running engine on ${pages_in_array}" if (${debug}) _msg debug "_pages: Running engine on ${pages_in_array}"
local page_content=$( ${engine} "$page_content" ) if [[ ${file_ext} == "tpl" ]]; then
local page_content=$( ${engine} "$page_content" )
elif [[ ${file_ext} == "md" ]]; then
local page_content=$( echo "$page_content" | ${engine} >&1 )
fi
# Look for links, images and videos and convert them if present. # Look for links, images and videos and convert them if present.
if (${debug}) _msg debug "_pages: Checking for #link, #showimg and #ytvideo in page_content" if (${debug}) _msg debug "_pages: Checking for #link, #showimg and #ytvideo in page_content"