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.
- Assigning the pandoc engine path to the variable.
- Assigning the pandoc engine options to the variable.
- Modifying the usage of the variable in the and functions to include the .
These changes improve the flexibility and maintainability of the script by separating the engine and its options, making it easier to modify and customize the pandoc command.
- Update to version 0.3.5
- Updated the link to Zsh in the README file.
- Made changes to the _pages function in the qsgen2 script to use Zsh built-in functions for finding the page title.
- Added support for finding the page title in markdown files in the _pages function.
- Added support for finding the blog title in markdown files in the _blogs function.
• Updated the VERSION variable from 0.3.3 to 0.3.4
• Added a check for the DATE metadata in the blog file
• If the DATE metadata is missing, the script will skip the file and move to the next
These changes ensure that the script properly handles the DATE metadata in the blog files and prevents any issues caused by
missing metadata.
This commit modifies the qsgen2 script to add support for additional plugin directories. The fpath variable is updated to
include /home/stig/.config/qsgen2/plugins in addition to /home/stig/bin/include/common. This allows users to place their custom
plugins in the ~/.config/qsgen2/plugins directory and have them loaded by the script.
Additionally, a debug message is added to notify the user if no valid generator is found in the 'config' file, and the
script exits in that case.
The commit also includes some minor code formatting and comment updates for clarity.