Working on _blog_idx_for_index

This commit is contained in:
Stig-Ørjan Smelror 2024-01-30 13:25:59 +01:00
parent fa941e57d7
commit 4cc74d853d

17
qsgen2
View File

@ -554,18 +554,15 @@ function _blog_idx_for_index() {
URL:*) url=${component#URL: } ;;
esac
local adate=( $( echo ${sdate} ) )
local bdate="${adate[1]} - ${adate[4]}/${adate[3]}/${adate[2]}"
local blog_list_content=$(echo "${blog_list}" | perl -pe "s|BLOGURL|${url}|g")
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|BLOGTITLE|${btitle}|g")
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|INGRESS|${ingress}|g")
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|BLOGDATE|${bdate}|g")
echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html
local adate=( $( echo ${sdate} ) )
local bdate="${adate[1]} - ${adate[4]}/${adate[3]}/${adate[2]}"
local blog_list_content=$(echo "${blog_list}" | perl -pe "s|BLOGURL|${url}|g")
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|BLOGTITLE|${btitle}|g")
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|INGRESS|${ingress}|g")
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|BLOGDATE|${bdate}|g")
done
echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html
done
}