Trying
This commit is contained in:
parent
f3cd72c984
commit
9c1f385c6a
8
qsgen2
8
qsgen2
@ -361,7 +361,7 @@ function _pages() {
|
|||||||
# Always use lowercase for file names
|
# Always use lowercase for file names
|
||||||
pages_title_lower=$( _file_to_lower "${pages_in_array}" )
|
pages_title_lower=$( _file_to_lower "${pages_in_array}" )
|
||||||
# Write pages_tpl to disk
|
# Write pages_tpl to disk
|
||||||
echo "Writing ${www_root}/${pages_title_lower%.*}.html to disk."
|
echo "${green}Writing ${www_root}/${pages_title_lower%.*}.html to disk.${end}"
|
||||||
tee < ${pages_tpl} | sed \
|
tee < ${pages_tpl} | sed \
|
||||||
-e "s|BODY|$( echo ${page_content} )|" \
|
-e "s|BODY|$( echo ${page_content} )|" \
|
||||||
> ${www_root}/${pages_title_lower%.*}.html
|
> ${www_root}/${pages_title_lower%.*}.html
|
||||||
@ -371,13 +371,13 @@ function _pages() {
|
|||||||
|
|
||||||
# Look for links, images and videos and convert them if present.
|
# 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 (${debug}) echo "_pages: Checking for #link, #showimg and #ytvideo in page_content"
|
||||||
if [[ $( cat ${www_root}/${pages_title_lower%.*}.html | grep \#link > /dev/null ) ]]; then
|
if [[ $( cat ${www_root}/${pages_title_lower%.*}.html | grep \#link ) ]]; then
|
||||||
echo "If #link is present, run _link: ${page_content}"
|
echo "If #link is present, run _link: ${page_content}"
|
||||||
#_link ${www_root}/${pages_in_array%.*}.html
|
#_link ${www_root}/${pages_in_array%.*}.html
|
||||||
elif [[ $( cat ${www_root}/${pages_title_lower%.*}.html | grep \#showimg > /dev/null ) ]]; then
|
elif [[ $( cat ${www_root}/${pages_title_lower%.*}.html | grep \#showimg ) ]]; then
|
||||||
echo "If #showimg is present, run _image: ${page_content}"
|
echo "If #showimg is present, run _image: ${page_content}"
|
||||||
#_image ${www_root}/${pages_in_array%.*}.html
|
#_image ${www_root}/${pages_in_array%.*}.html
|
||||||
elif [[ $( cat ${www_root}/${pages_title_lower%.*}.html | grep \#ytvideo > /dev/null ) ]]; then
|
elif [[ $( cat ${www_root}/${pages_title_lower%.*}.html | grep \#ytvideo ) ]]; then
|
||||||
echo "If #ytvideo is present, run _youtube: ${page_content}"
|
echo "If #ytvideo is present, run _youtube: ${page_content}"
|
||||||
#_youtube ${www_root}/${pages_in_array%.*}.html
|
#_youtube ${www_root}/${pages_in_array%.*}.html
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user