From bb412263a8595460e0a7492cdee81f98380e3ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Wed, 31 Jan 2024 07:15:41 +0100 Subject: [PATCH] Update _blog_index --- qsgen2 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index dd78375..7883c63 100755 --- a/qsgen2 +++ b/qsgen2 @@ -591,16 +591,14 @@ function _blog_index() { echo "Unable to find the Blogs template: ${blog_index_file}" exit fi - - _blogs get_index - + if [[ ${blog_in_index} == "false" ]]; then echo "${green}Updating the Blog Index file${end}" blog_index_content=$(echo "${blog_index}" | perl -pe "s|BODY|${blog_index_list}|g") echo ${blog_index_content} > ${www_root}/blog/index.html _f_last_updated ${www_root}/blog/index.html elif [[ ${blog_in_index} == "true" ]]; then - # Write blog list to /index.html + # Write blog list to /index.html and /blog/index.html fi }