Update _blog_index

This commit is contained in:
Stig-Ørjan Smelror 2024-01-31 07:15:41 +01:00
parent 27961bc25f
commit bb412263a8

4
qsgen2
View File

@ -592,15 +592,13 @@ function _blog_index() {
exit exit
fi fi
_blogs get_index
if [[ ${blog_in_index} == "false" ]]; then if [[ ${blog_in_index} == "false" ]]; then
echo "${green}Updating the Blog Index file${end}" echo "${green}Updating the Blog Index file${end}"
blog_index_content=$(echo "${blog_index}" | perl -pe "s|BODY|${blog_index_list}|g") blog_index_content=$(echo "${blog_index}" | perl -pe "s|BODY|${blog_index_list}|g")
echo ${blog_index_content} > ${www_root}/blog/index.html echo ${blog_index_content} > ${www_root}/blog/index.html
_f_last_updated ${www_root}/blog/index.html _f_last_updated ${www_root}/blog/index.html
elif [[ ${blog_in_index} == "true" ]]; then elif [[ ${blog_in_index} == "true" ]]; then
# Write blog list to /index.html # Write blog list to /index.html and /blog/index.html
fi fi
} }