Move around the workflow
This commit is contained in:
parent
eb8c960043
commit
9bc7941315
8
qsgen2
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user