_html _zhtml: Change Underline QStag from U to IU (Insert Underline)

This commit is contained in:
Stig-Ørjan Smelror 2024-02-03 19:48:18 +01:00
parent 45137cc873
commit 1aff7ed2a7
2 changed files with 4 additions and 3 deletions

View File

@ -86,3 +86,4 @@ And then the footer gets the same touch as the blog posts.
### Knows bugs ### Knows bugs
* Sometimes it doesn't write the Blog Index file (/blog/index.html) with all the blogs, only the latest. * 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

6
qsgen2
View File

@ -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 # 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 # 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" _msg std "Updating index.html with new blog posts"
if (${debug}) _msg sub "- Parsing ${pages_in_array}" if (${debug}) _msg sub "- Parsing ${pages_in_array}"
if (${debug}) _msg sub "- blog_in_index = ${blog_in_index}" if (${debug}) _msg sub "- blog_in_index = ${blog_in_index}"
@ -899,7 +899,7 @@ function _html() {
"#UL", "<ul>", "#EUL", "</ul>\n", "#UL", "<ul>", "#EUL", "</ul>\n",
"#OL", "<ol>", "#EOL", "</ol>\n", "#OL", "<ol>", "#EOL", "</ol>\n",
"#LI", "<li>", "#ELI", "</li>\n", "#LI", "<li>", "#ELI", "</li>\n",
"#U", "<u>", "#EU", "</u>\n", "#IU", "<u>", "#EIU", "</u>\n",
"#TBL", "<table>", "#ETBL", "</table>\n", "#TBL", "<table>", "#ETBL", "</table>\n",
"#TR", "<tr>", "#ETR", "</tr>\n", "#TR", "<tr>", "#ETR", "</tr>\n",
"#TD", "<td>", "#ETD", "</td>\n", "#TD", "<td>", "#ETD", "</td>\n",
@ -956,7 +956,7 @@ function _zhtml() {
"#UL" "<ul>" "#EUL" "</ul>\n" "#UL" "<ul>" "#EUL" "</ul>\n"
"#OL" "<ol>" "#EOL" "</ol>\n" "#OL" "<ol>" "#EOL" "</ol>\n"
"#LI" "<li>" "#ELI" "</li>\n" "#LI" "<li>" "#ELI" "</li>\n"
"#U" "<u>" "#EU" "</u>\n" "#IU" "<u>" "#EIU" "</u>\n"
"#TBL" "<table>" "#ETBL" "</table>\n" "#TBL" "<table>" "#ETBL" "</table>\n"
"#TR" "<tr>" "#ETR" "</tr>\n" "#TR" "<tr>" "#ETR" "</tr>\n"
"#TD" "<td>" "#ETD" "</td>\n" "#TD" "<td>" "#ETD" "</td>\n"