_pages: look for file_ex and run engine
This commit is contained in:
parent
ed3bd3226c
commit
f6b0f2e7cf
4
qsgen2
4
qsgen2
@ -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}"
|
||||||
|
if [[ ${file_ext} == "tpl" ]]; then
|
||||||
local page_content=$( ${engine} "$page_content" )
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user