Working on _blog_idx_for_index
This commit is contained in:
parent
dd29e4d5f0
commit
79209aeff1
6
qsgen2
6
qsgen2
@ -552,17 +552,19 @@ function _blog_idx_for_index() {
|
|||||||
BTITLE:*) btitle=${component#BTITLE: } ;;
|
BTITLE:*) btitle=${component#BTITLE: } ;;
|
||||||
INGRESS:*) ingress=${component#INGRESS: } ;;
|
INGRESS:*) ingress=${component#INGRESS: } ;;
|
||||||
URL:*) url=${component#URL: } ;;
|
URL:*) url=${component#URL: } ;;
|
||||||
esac
|
|
||||||
|
|
||||||
local -a adate=( ${sdate} )
|
local -a adate=( ${sdate} )
|
||||||
bdate="${adate[1]} - ${adate[4]}/${adate[3]}/${adate[2]}"
|
bdate="${adate[1]} - ${adate[4]}/${adate[3]}/${adate[2]}"
|
||||||
blog_list_content=$(echo "${blog_list}" | perl -pe "s|BLOGURL|${url}|g")
|
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|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|INGRESS|${ingress}|g")
|
||||||
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|BLOGDATE|${bdate}|g")
|
blog_list_content=$(echo "${blog_list_content}" | perl -pe "s|BLOGDATE|${bdate}|g")
|
||||||
|
|
||||||
echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html
|
echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user