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.