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", "