Working on _blog_idx_for_index
This commit is contained in:
parent
bf29a394d0
commit
82e33fe15e
7
qsgen2
7
qsgen2
@ -490,8 +490,6 @@ function _blogs() {
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
export updated_blogs=true
|
|
||||||
|
|
||||||
# Declare the array to hold metadata strings for each blog
|
# Declare the array to hold metadata strings for each blog
|
||||||
BLOG_META_STR_ARRAY=()
|
BLOG_META_STR_ARRAY=()
|
||||||
|
|
||||||
@ -519,6 +517,7 @@ function _blogs() {
|
|||||||
|
|
||||||
# Now BLOG_META_STR_ARRAY contains the metadata string for each blog post
|
# Now BLOG_META_STR_ARRAY contains the metadata string for each blog post
|
||||||
export BLOG_META_STR_ARRAY
|
export BLOG_META_STR_ARRAY
|
||||||
|
export updated_blogs=true
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -535,6 +534,9 @@ function _blog_idx_for_index() {
|
|||||||
_blogs get_index
|
_blogs get_index
|
||||||
|
|
||||||
local debug=false
|
local debug=false
|
||||||
|
|
||||||
|
if [[ ${updated_blogs} = "true" ]]; then
|
||||||
|
|
||||||
local blog_list=$(<${project_dir}/templates/${theme}/blog_list.tpl)
|
local blog_list=$(<${project_dir}/templates/${theme}/blog_list.tpl)
|
||||||
|
|
||||||
# Truncate file before writing new one
|
# Truncate file before writing new one
|
||||||
@ -570,6 +572,7 @@ function _blog_idx_for_index() {
|
|||||||
done
|
done
|
||||||
echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html
|
echo ${blog_list_content} >> ${project_dir}/blog/index.tmp.html
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user