Fixed a bug in _blog_index
This commit is contained in:
parent
fc3843cfa2
commit
0161074f68
5
qsgen2
5
qsgen2
@ -581,11 +581,6 @@ function _blog_index() {
|
|||||||
local blog_index=$(<${project_dir}/themes/${theme}/blog_index.tpl)
|
local blog_index=$(<${project_dir}/themes/${theme}/blog_index.tpl)
|
||||||
local blog_index_list=$(<${project_dir}/blog/index.tmp.html)
|
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}"
|
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 echo "${blog_index}" | perl -pe "s|BODY|${blog_index_list}|g" > ${www_root}/blog/index.html
|
echo echo "${blog_index}" | perl -pe "s|BODY|${blog_index_list}|g" > ${www_root}/blog/index.html
|
||||||
|
Loading…
Reference in New Issue
Block a user