Working on _blog_idx_for_index
This commit is contained in:
parent
f3d23002ac
commit
b817e88a76
4
qsgen2
4
qsgen2
@ -539,7 +539,7 @@ function _blog_idx_for_index() {
|
||||
|
||||
if [[ ${updated_blogs} = "true" ]]; then
|
||||
|
||||
local blog_list=$(<${project_dir}/templates/${theme}/blog_list.tpl)
|
||||
local blog_list_tpl=$(<${project_dir}/templates/${theme}/blog_list.tpl)
|
||||
|
||||
# Truncate file before writing new one
|
||||
: >| "${project_dir}/blog/index.tmp.html"
|
||||
@ -566,7 +566,7 @@ if [[ ${updated_blogs} = "true" ]]; then
|
||||
|
||||
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_tpl}" | 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")
|
||||
|
Loading…
Reference in New Issue
Block a user