Looks like _pages is working now
This commit is contained in:
parent
23c6fc14dd
commit
f747a85856
8
qsgen2
8
qsgen2
@ -294,7 +294,7 @@ function _file_to_lower() {
|
||||
function _pages() {
|
||||
# This function generates all the new and updated Pages
|
||||
|
||||
local debug=true
|
||||
local debug=false
|
||||
|
||||
# Load the cache for Pages
|
||||
if (${debug}) echo "_pages: Running function _pages_cache"
|
||||
@ -340,15 +340,15 @@ function _pages() {
|
||||
# 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 [[ $( echo ${page_content} | grep \#link ) ]]; then
|
||||
echo "If #link is present, run _link: page_content"
|
||||
if (${debug}) echo "_pages: If #link is present, run _link: page_content"
|
||||
page_content=$( _link "${page_content}" )
|
||||
fi
|
||||
if [[ $( echo ${page_content} | grep \#showimg ) ]]; then
|
||||
echo "If #showimg is present, run _image: page_content"
|
||||
if (${debug}) echo "_pages: If #showimg is present, run _image: page_content"
|
||||
page_content=$( _image "${page_content}" )
|
||||
fi
|
||||
if [[ $( echo ${page_content} | grep \#ytvideo ) ]]; then
|
||||
echo "If #ytvideo is present, run _youtube: page_content"
|
||||
if (${debug}) echo "_pages: If #ytvideo is present, run _youtube: page_content"
|
||||
page_content=$( _youtube "${page_content}" )
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user