From 1aff7ed2a70693bd0bc4bf3f0bf2d891086e40b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 19:48:18 +0100 Subject: [PATCH] _html _zhtml: Change Underline QStag from U to IU (Insert Underline) --- README.md | 1 + qsgen2 | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ad6a305..627a78a 100644 --- a/README.md +++ b/README.md @@ -86,3 +86,4 @@ And then the footer gets the same touch as the blog posts. ### Knows bugs * Sometimes it doesn't write the Blog Index file (/blog/index.html) with all the blogs, only the latest. + * The problem is that when a new blog post is added, it doesn't get added to the list of posts diff --git a/qsgen2 b/qsgen2 index 8b1dd66..d9a6226 100755 --- a/qsgen2 +++ b/qsgen2 @@ -445,7 +445,7 @@ function _pages() { # Insert the blog to the front page is blog_in_index is true and the file in the array is index.file_ext # and if index.tmp.html exist and is not empty - if [[ ${pages_in_array} == "index.${file_ext}" && ${blog_in_index} == "true" && -s "${project_dir}/blog/index.tmp.html" ]]; then + if [[ ${blog_in_index} == "true" && -s "${project_dir}/blog/index.tmp.html" ]]; then _msg std "Updating index.html with new blog posts" if (${debug}) _msg sub "- Parsing ${pages_in_array}" if (${debug}) _msg sub "- blog_in_index = ${blog_in_index}" @@ -899,7 +899,7 @@ function _html() { "#UL", "\n", "#OL", "
    ", "#EOL", "
\n", "#LI", "
  • ", "#ELI", "
  • \n", - "#U", "", "#EU", "\n", + "#IU", "", "#EIU", "\n", "#TBL", "", "#ETBL", "
    \n", "#TR", "", "#ETR", "\n", "#TD", "", "#ETD", "\n", @@ -956,7 +956,7 @@ function _zhtml() { "#UL" "\n" "#OL" "
      " "#EOL" "
    \n" "#LI" "
  • " "#ELI" "
  • \n" - "#U" "" "#EU" "\n" + "#IU" "" "#EIU" "\n" "#TBL" "" "#ETBL" "
    \n" "#TR" "" "#ETR" "\n" "#TD" "" "#ETD" "\n"