From caaeaf0c243b85d283d8c462f7441a6c0ee4fedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 16:32:54 +0100 Subject: [PATCH] _pages: Let's work on the bug of blog not showing on front page --- qsgen2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 8773110..093440e 100755 --- a/qsgen2 +++ b/qsgen2 @@ -412,7 +412,7 @@ function _pages() { pages_tpl=$(echo "${pages_tpl}" | perl -pe "s|#pagetitle|${page_title}|gs; s|#tagline|${site_tagline}|gs; s|#sitename|${site_name}|gs") # Insert the blog to the front page is blog_in_index is true and the file in the array is index.file_ext - if [[ ${pages_in_array} == "index.${file_ext}"]] && [[ ${blog_in_index} == "true" ]]; then + if [[ ${pages_in_array} == "index.${file_ext}" && ${blog_in_index} == "true" ]]; then if [[ -f ${project_dir}/blog/index.tmp.html ]]; then local blog_index_file=$(<${project_dir}/blog/index.tmp.html) else