Commit Graph
100 Commits
Author SHA1 Message Date
kekePower 30f99ff6d6 _blogs: Fix _blogs_msg_15 again 2024-02-24 19:18:21 +01:00
kekePower 3f2c1e8b4c _blogs: Fix _blogs_msg_15 2024-02-24 19:16:16 +01:00
kekePower ad1c11f626 Fix _blogs_msg_15 2024-02-24 19:13:36 +01:00
kekePower 04d558c2d7 Remove old variables. Rename _zhtml to _qstags. Debug _blogs to find the bottleneck. 2024-02-24 19:03:58 +01:00
kekePower fe2867b3ed qsgen2: Add missing config[site_theme] 2024-02-22 10:46:44 +01:00
kekePower 800d990e79 qsgen2: Replace old config variables with the new ones. 2024-02-22 10:44:19 +01:00
kekePower 3389a23e58 Update to version 0.4.2. 2024-02-22 10:33:33 +01:00
kekePower 6827a86351 qsgen2: Update to version 0.4.1 2024-02-19 20:11:06 +01:00
kekePower cb2f169bb4 qsgen2: Add option to update sitemaps only again 2024-02-19 20:05:21 +01:00
kekePower 14258f5b20 qsgen2: Add option to update sitemaps only again 2024-02-19 20:00:16 +01:00
kekePower 7abece6b6a qsgen2: Add option to update sitemaps only 2024-02-19 19:58:44 +01:00
kekePower b4d3fb036b _sitemap: Removed html_files array by accident 2024-02-19 19:55:00 +01:00
kekePower e5c4b9ae3e _sitemap: Simplify sitemap genration. 2024-02-19 19:47:23 +01:00
kekePower 6a138075fb _sitemap: Missing / in sitemap links 2024-02-19 19:31:37 +01:00
kekePower 8159f09088 _sitemap: Let's find files from www_root directly and map them from there. 2024-02-19 19:27:37 +01:00
kekePower 8b28ce9a96 Created a new global function, zini, the Zsh INI reader. New breaking changes to config.example. Updated qsgen2 using zini and mapped old values to the new ones temporarily. 2024-02-19 19:18:46 +01:00
kekePower 22be2e4a6d _sitemap: More optimization 2024-02-18 11:41:26 +01:00
kekePower dc8ee08709 _sitemap: More optimization 2024-02-18 11:39:40 +01:00
kekePower bbf5a65943 _sitemap: setopt extendedglob 2024-02-18 11:30:29 +01:00
kekePower 6f74e7b67f _sitemap: Fix finding the files 2024-02-18 11:28:46 +01:00
kekePower 8105b7aa81 _sitemap: Fix finding the files 2024-02-18 11:27:42 +01:00
kekePower d3617bca28 _sitemap: Typo 2024-02-18 11:13:51 +01:00
kekePower 550d1a75a3 _sitemap: Split blogs and pages into separate sitemap files. 2024-02-18 11:12:28 +01:00
kekePower 152d811901 _sitemap: Try using Zsh's glob to find the files. 2024-02-18 10:58:15 +01:00
kekePower 40518ec0c5 _sitemap: Try using Zsh's glob to find the files. 2024-02-18 10:55:25 +01:00
kekePower 1d5318258d _html and _zhtml: Updates to QStags 2024-02-17 11:54:59 +01:00
kekePower 31930c60a7 qsgen2: Add en_UK and fr_FR language files. 2024-02-16 21:10:24 +01:00
kekePower 2a8eb3e02f qsgen2: Typo 2024-02-16 20:37:34 +01:00
kekePower 2dc1f3a929 qsgen2: Messed up finding language files again... 2024-02-16 20:36:57 +01:00
kekePower b07d0a6708 qsgen2: Messed up finding language files... 2024-02-16 20:34:02 +01:00
kekePower 6045c8fba4 _sitemap: Tell user what sitemap file is written to disk 2024-02-16 20:32:17 +01:00
kekePower 5cec0d1fb8 qsgen2: Renamed config to config.example and updated messages. 2024-02-16 10:38:21 +01:00
kekePower 368512e65e qsgen2: Moved stuff around, updated a few comments and changed how the language file is loaded. 2024-02-16 10:37:01 +01:00
kekePower 56bb8f5ef3 qsgen2: Update to version 0.4.0. 2024-02-15 16:42:54 +01:00
kekePower 93247e00e5 Refactor code in qsgen2 script
This commit refactors the code in the qsgen2 script by removing unnecessary commented-out lines and cleaning up variable assignments. It also improves the readability of the code by using conditional assignment for the  variable. Instead of assigning the value of  directly, it checks if  is set to true and assigns the corresponding boolean value to . This simplifies the code and makes it easier to understand.
2024-02-15 13:33:11 +01:00
kekePower 281cae0da6 _pages and _blogs: 2 spaces in message is enough 2024-02-15 07:38:41 +01:00
kekePower 7dfde2b9eb _blog_idx_for_index: Disable debug 2024-02-14 21:06:00 +01:00
kekePower bce55cee80 _blog_idx_for_index: Trying to speed things up 2024-02-14 20:28:15 +01:00
kekePower 3e9add3969 _blog_idx_for_index: Trying to speed things up 2024-02-14 20:24:19 +01:00
kekePower d4bbf0c8ca qsgen2: New function _run_engine 2024-02-14 18:50:48 +01:00
kekePower c76ffc2056 _blog_idx_for_index: Optimize and speed up function 2024-02-14 18:29:19 +01:00
kekePower f9e283bf7b _blog_idx_for_index: Debug 2024-02-14 18:17:32 +01:00
kekePower 6329fbe5cf _blog_idx_for_index: Debug 2024-02-14 18:09:32 +01:00
kekePower ff489fbe05 _blog_index: Debug 2024-02-14 18:08:08 +01:00
kekePower 189c088cb0 _blog_idx_for_index: Debug 2024-02-14 18:06:26 +01:00
kekePower 478007e7c3 _pages and _blogs: TAB didn't look good. Use 3 spaces instead. 2024-02-14 17:58:30 +01:00
kekePower 29a09faf16 _msg: Refactor to enable escaped commands 2024-02-14 17:56:21 +01:00
kekePower 7805e4a89b _pages and _blogs: Testing formatting of message 2024-02-14 17:48:52 +01:00
kekePower 22db3a705d en_US: Testing formatting 2024-02-14 17:40:25 +01:00
kekePower 4e24635e61 qsgen2: Update config for localization 2024-02-14 17:35:52 +01:00
kekePower db37cacd49 qsgen2: Silly bug... 2024-02-14 17:34:13 +01:00
kekePower 3caae5c274 qsgen2: Updates towards complete localization. Update to version 0.4.0 beta 1. 2024-02-14 17:32:49 +01:00
kekePower a88100ff47 _msg: Remove the very last debug message 2024-02-14 16:04:54 +01:00
kekePower 9f4e657bad _msg: Remove last debug message 2024-02-14 16:04:24 +01:00
kekePower aafbc7ecaf _msg: Yay... It's working 2024-02-14 16:03:50 +01:00
kekePower e395bba757 _msg: Still trying 2024-02-14 16:02:19 +01:00
kekePower 5907393b77 _msg: Add more security 2024-02-14 16:01:14 +01:00
kekePower 9dd003a815 qsgen2: Set type array 2024-02-14 15:59:33 +01:00
kekePower ee28d2de9f qsgen2: Remove unused elements 2024-02-14 15:57:31 +01:00
kekePower 7fc4a62497 qsgen2: Remove unused elements 2024-02-14 15:55:20 +01:00
kekePower 1633d3bbdd qsgen2: Begin work on localization 2024-02-14 15:51:46 +01:00
kekePower 72d077dafa en_US: Cleaning up array 2024-02-14 15:10:44 +01:00
kekePower 1ce738cd3a nb_NO: Cleaning up array 2024-02-14 15:04:20 +01:00
kekePower 4c21f669b7 Change name of localization array 2024-02-14 13:37:58 +01:00
kekePower fd54fc7543 Debug localization 2024-02-14 13:31:47 +01:00
kekePower 000cee4e49 _msg: Debug 2024-02-14 13:24:28 +01:00
kekePower 96b26305d8 nb_NO: Testing 2024-02-14 13:20:15 +01:00
kekePower cfd37fb499 _msg: Refactor for localization 2024-02-14 13:19:10 +01:00
kekePower 571bd29997 _msg: Refactor for localization 2024-02-14 13:11:37 +01:00
kekePower 769661cee0 _msg: Refactor 2024-02-14 13:06:44 +01:00
kekePower 918e4d2fd8 qsgen2: Source language files instead of autoload 2024-02-14 13:01:43 +01:00
kekePower 04edfff25e _msg: Debug 2024-02-14 12:55:01 +01:00
kekePower 08935e109a qsgen2: Set globaldebug and exit 2024-02-14 12:46:51 +01:00
kekePower 38b9863a64 nb_NO: Split text string 2024-02-14 12:43:09 +01:00
kekePower 19748fce8e _msg: Refactor 2024-02-14 12:40:53 +01:00
kekePower 0a8cd680bd qsgen2: Update stuff 2024-02-14 12:17:35 +01:00
kekePower 099897ac34 qsgen2: Update strings in Spanish language file 2024-02-14 12:06:47 +01:00
kekePower a3e7eee83d qsgen2: Update strings in language files 2024-02-14 11:58:21 +01:00
kekePower e2c7f85125 qsgen2: Add correct path to language files 2024-02-14 11:38:42 +01:00
kekePower 61cd217861 qsgen2: Load language after reading config file 2024-02-14 11:37:25 +01:00
kekePower c68dafda4f qsgen2: Updated function _msg to enable localization. en_US, es_ES and nb_NO available. 2024-02-14 11:35:47 +01:00
kekePower 136a9644f5 qsgen2: Simplify local vs global debug 2024-02-13 07:12:10 +01:00
kekePower 987a80397d Disable debug 2024-02-12 23:12:42 +01:00
kekePower f4e8dee83c Update to version 0.3.6 2024-02-12 23:12:06 +01:00
kekePower 0ff85c7128 Refactor _f_last_updated 2024-02-12 23:09:17 +01:00
kekePower 48b2f30ea7 Refactor _f_last_updated 2024-02-12 23:03:26 +01:00
kekePower a34812d11c Replace #updated with the updated message in qsgen2 file 2024-02-12 23:01:36 +01:00
kekePower 8a9f4eed88 Fix debug flag in _blog_index function
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
2024-02-12 22:47:27 +01:00
kekePower 80e1874926 Refactor _f_last_updated 2024-02-12 22:44:57 +01:00
kekePower 0dfa793dae Really try to write to file 2024-02-12 22:39:00 +01:00
kekePower 9ab53d6bfb Really try to write to file 2024-02-12 22:37:23 +01:00
kekePower 89d2415e47 Really try to write to file 2024-02-12 22:35:24 +01:00
kekePower 8270bf4f31 Really try to write to file 2024-02-12 22:32:46 +01:00
kekePower c96c113678 Fix tee command 2024-02-12 22:26:31 +01:00
kekePower 4c57f98146 Refactor _blog_index function in qsgen2 script
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.
2024-02-12 22:24:13 +01:00
kekePower d8801d3b3f Add debug messages to _blog_index function in qsgen2 script 2024-02-12 22:19:50 +01:00
kekePower 953986f0af Add error handling for writing to /blog/index.html in _blog_index function 2024-02-12 21:57:38 +01:00
kekePower 0af7129cd5 Refactor _blog_index function in qsgen2 script
- 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.
2024-02-12 21:53:26 +01:00
kekePower 7ce545e423 Add blog index content to /blog/index.html
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.
2024-02-12 21:04:16 +01:00
kekePower cce973f2cd Fix debug flag in _blogs function and add debug messages in _blog_index function
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.
2024-02-12 21:01:15 +01:00