diff --git a/qsgen2 b/qsgen2 index 491353a..f0e8905 100755 --- a/qsgen2 +++ b/qsgen2 @@ -359,10 +359,12 @@ function _pages() { if [[ $( grep \#link ${pages_tpl} > /dev/null ) ]]; then echo "If #link is present, run _link: pages_tpl" page_content=$( _link "${pages_tpl}" ) - elif [[ $( grep \#showimg ${pages_tpl} > /dev/null ) ]]; then + fi + if [[ $( grep \#showimg ${pages_tpl} > /dev/null ) ]]; then echo "If #showimg is present, run _image: pages_tpl" page_content=$( _image "${pages_tpl}" ) - elif [[ $( grep \#ytvideo ${pages_tpl} > /dev/null ) ]]; then + fi + if [[ $( grep \#ytvideo ${pages_tpl} > /dev/null ) ]]; then echo "If #ytvideo is present, run _youtube: pages_tpl" page_content=$( _youtube "${pages_tpl}" ) fi