Commit Graph

589 Commits

Author SHA1 Message Date
30c99c11b9 Refactor code in qsgen2 script
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.
2024-02-10 22:09:19 +01:00
b615627436 Fix variable assignment in qsgen2 script 2024-02-10 22:06:12 +01:00
b6ae91dbf9 Add checks for DATE and BLOG_TITLE metadata in the _blogs function. If either metadata is missing in a blog file, a debug message is logged and the file is skipped. 2024-02-10 22:03:37 +01:00
06a5aba5aa Minor change 2024-02-10 21:57:16 +01:00
a707f1e009 Minor change 2024-02-10 21:56:48 +01:00
162f217f94 Minor change 2024-02-10 21:53:36 +01:00
638f073f17 Minor change 2024-02-10 21:52:59 +01:00
13e9c8d172 Refactor qsgen2 script to separate the pandoc engine and its options into separate variables. This allows for easier modification and customization of the pandoc command. The changes include:
- 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.
2024-02-10 21:49:34 +01:00
12f36071df Update Quick Site Generator 2 README and qsgen2 script
- 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.
2024-02-10 21:15:24 +01:00
9eafc715b6 Update README.md 2024-02-09 12:58:02 +01:00
4afa2c2d5a Update qsgen2 to version 0.3.4
• 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.
2024-02-08 07:57:14 +01:00
75b98cc2e3 Remove 3rdpart directory 2024-02-08 07:33:51 +01:00
1fb7f3acb0 Add support for additional plugin directories in qsgen2
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.
2024-02-08 07:31:30 +01:00
d3a7e6d3d9 _blog_index: Fix a bug where #sitename wasn't being updated 2024-02-06 10:14:19 +01:00
4840374414 Add external link svg icon 2024-02-06 10:08:48 +01:00
3ddf20b333 _msg: Change colors 2024-02-06 09:56:12 +01:00
f8242328ad _msg: Change the display of colors 2024-02-06 09:55:22 +01:00
95df8e4c75 _msg: Add forgotten close for case 2024-02-06 09:54:10 +01:00
7789b060df qsgen2: Lots of fixes and better messages 2024-02-06 09:53:22 +01:00
4f49610eab _link: Remove space for external icon 2024-02-06 07:35:53 +01:00
949f36cb91 _link: Update external icon 2024-02-06 07:30:40 +01:00
2850f4567e qsgen2: Squash some unwanted debug messages 2024-02-05 21:43:34 +01:00
8da466d720 qsgen2: Load zsh/datetime to use strftime using zmodload 2024-02-05 21:39:34 +01:00
2e8e60d8a3 qsgen2: Load zsh/datetime to use strftime 2024-02-05 21:34:22 +01:00
cfc5e02117 qsgen2: Version 0.3.3 2024-02-05 21:21:47 +01:00
28d26040a4 qsgen2: More cleaning up tabs and spaces 2024-02-05 21:19:22 +01:00
535a5ec0b8 qsgen2: Clean up tabs and spaces 2024-02-05 20:55:22 +01:00
45d1d31356 qsgen2: Use strftime instead of date 2024-02-05 20:10:28 +01:00
3aaa193dc3 qsgen2: Add globaldebug and use it across the script 2024-02-05 19:50:17 +01:00
13ede0db53 _zhtml: Add formatting to the li tag 2024-02-05 19:18:57 +01:00
7a754b46d6 _blog_idx_for_index: Run engine on content to catch QStags in Ingress 2024-02-05 18:43:49 +01:00
bd6da5ea27 qsgen2: Version 0.3.1 2024-02-05 16:22:39 +01:00
66504b7c58 qsgen2: Disable debug 2024-02-05 16:20:39 +01:00
410eff03e5 _cd_to_site: Remove function as 'cd' doesn't work in scripts 2024-02-05 16:03:31 +01:00
48e31089c1 _cd_to_site: Try to change dir another way 2024-02-05 15:59:45 +01:00
818b260532 _cd_to_site: Try to change dir another way 2024-02-05 15:58:59 +01:00
e427b0e4ce _cd_to_site: Try to change dir another way 2024-02-05 15:58:05 +01:00
e7370033d9 _cd_to_site: Try to change dir another way 2024-02-05 15:55:42 +01:00
3cf51560e7 _cd_to_site: Try to change dir 2024-02-05 15:54:41 +01:00
a3e30a3e0a _cd_to_site: Don't run the rest of the script 2024-02-05 15:49:03 +01:00
227c6ef7fb qsgen2: Add new function _cd_to_site 2024-02-05 15:47:59 +01:00
9557dc1971 _blog_index: Debug 2024-02-05 13:59:23 +01:00
63c1976011 _blogs: Debug 2024-02-05 13:55:28 +01:00
429a98d914 _blog_idx_for_index: Remove a slash 2024-02-05 13:52:08 +01:00
3412dd3b5d _blog_idx_for_index: Create a complete link to blog post 2024-02-05 13:51:18 +01:00
37ae7b37eb qsgen2: Update to version 0.3.0 2024-02-04 18:50:28 +01:00
b5dd211ed5 qsgen2: Add message when running in force mode 2024-02-04 18:46:23 +01:00
7b6d1935f5 qsgen2: Continue execution without parameters 2024-02-04 18:42:35 +01:00
54c3640107 qsgen2: Continue execution without parameters 2024-02-04 18:42:08 +01:00
8ada4b4701 _link: Add a space between link text and ext url icon 2024-02-04 18:35:37 +01:00