From b28e2f6e541cfcfef02057d9de91406e944a14e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 16:46:29 +0100 Subject: [PATCH] _pages: Let's generate the file --- qsgen2 | 1 + 1 file changed, 1 insertion(+) diff --git a/qsgen2 b/qsgen2 index de27c9f..28b7b5b 100755 --- a/qsgen2 +++ b/qsgen2 @@ -414,6 +414,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 + _blog_idx_for_index local blog_index_file=$(<${project_dir}/blog/index.tmp.html) pages_tpl=$( awk -v new_blog="$blog_index_file" '{sub(/BLOGINDEX/, new_blog)} 1' <(echo "${pages_tpl}") ) else