Changed the debug flag in the _blog_index function from true to false to disable debugging for the function. Also, modified the file write operation to directly write the blog_index_content to /blog/index.html instead of using a temporary file
This commit refactors the _blog_index function in the qsgen2 script. The changes include:
- Commenting out the debug messages for the content of blog_index_content.
- Using the `tee` command with the `-overwrite` option to write the blog_index_content to ${www_root}/blog/index.html.
- Redirecting the output of `tee` to /dev/null to suppress any output.
- Change the debug message to use instead of
- Update the echo command to use double quotes around
These changes improve the readability and consistency of the code.
This commit adds the blog index content to the file /blog/index.html. The function replaces the placeholder in the content with the actual blog index list. After the replacement, the updated content is written to the file /blog/index.html. The commit also includes debug messages to display the content of before writing it to the file.
In the _blogs function, the debug flag was set to true, which caused unnecessary debug output. Changed it to false.
In the _blog_index function, added debug messages to indicate the replacement of sitename and tagline, as well as the replacement of BODY with the content of the blog index file.
This commit fixes the debug flag and adds debug messages for better troubleshooting and understanding of the code.