Fixed a bug in _blog_index

This commit is contained in:
Stig-Ørjan Smelror 2024-01-31 07:45:37 +01:00
parent fc3843cfa2
commit 0161074f68

5
qsgen2
View File

@ -581,11 +581,6 @@ function _blog_index() {
local blog_index=$(<${project_dir}/themes/${theme}/blog_index.tpl)
local blog_index_list=$(<${project_dir}/blog/index.tmp.html)
if [[ ! -f ${blog_index_file} ]]; then
echo "Unable to find the Blogs template: ${blog_index_file}"
exit
fi
echo "${green}Updating the Blog Index file${end}"
# blog_index_content=$(echo "${blog_index}" | perl -pe "s|BODY|${blog_index_list}|g")
echo echo "${blog_index}" | perl -pe "s|BODY|${blog_index_list}|g" > ${www_root}/blog/index.html