diff --git a/qsgen2 b/qsgen2 index 0002033..bddf771 100755 --- a/qsgen2 +++ b/qsgen2 @@ -340,13 +340,12 @@ function _pages() { # Run a cleanup if in case something was left out #_cleanup ${pages_tpl} - - # Write pages_tpl to disk - echo "Writing ${www_root}/${pages_in_array%.*}.html to disk." - + # Always use lowercase for file names pages_title_lower=$( _file_to_lower "${pages_in_array}" ) - echo "${pages_tpl}" > ${www_root}/${pages_in_array%.*}.html + # Write pages_tpl to disk + echo "Writing ${www_root}/${page_title_lower%.*}.html to disk." + echo "${pages_tpl}" > ${www_root}/${page_title_lower%.*}.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"