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.
This commit refactors the _blogs and _blog_index functions in the qsgen2 script.
In the _blogs function, the directory creation message is updated to use the correct variable instead of . Additionally, a debug message is added to indicate when is set to true.
In the _blog_index function, debug messages are added to display the values of and . The debug message for generating the page is updated to include the correct file path .
These changes improve the clarity and accuracy of the script's functionality.
This commit refactors the function in script. It updates the order of operations and improves code readability.
The changes include:
- Replacing with in after replacing other placeholders.
- Updating debug messages for better logging.
Additionally, the commit generates the blog index file and updates the message accordingly.
These changes improve the page generation process and ensure that the blog index file is correctly generated.
This commit refactors the code in the qsgen2 script. It fixes the assignment of the variable by using the correct syntax for capturing the match in the regular expression. It also fixes the assignment of the variable in the function. These changes ensure that the script works correctly with both the native and markdown generators.