Disable _link, _images and _youtube for now

This commit is contained in:
Stig-Ørjan Smelror 2024-01-29 23:16:25 +01:00
parent 7b33a0fc11
commit b578988387

6
qsgen2
View File

@ -352,13 +352,13 @@ function _pages() {
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 [[ $( grep \#link ${page_content} ) ]]; then if [[ $( grep \#link ${page_content} ) ]]; 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 [[ $( grep \#showimg ${page_content} ) ]]; then elif [[ $( grep \#showimg ${page_content} ) ]]; 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 [[ $( grep \#ytvideo ${page_content} ) ]]; then elif [[ $( grep \#ytvideo ${page_content} ) ]]; 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
# Run a cleanup if in case something was left out # Run a cleanup if in case something was left out