qsgen2: Run functions in another order
This commit is contained in:
parent
b28e2f6e54
commit
31c5e2f20f
3
qsgen2
3
qsgen2
@ -414,7 +414,6 @@ function _pages() {
|
|||||||
# Insert the blog to the front page is blog_in_index is true and the file in the array is index.file_ext
|
# Insert the blog to the front page is blog_in_index is true and the file in the array is index.file_ext
|
||||||
# and if index.tmp.html exist and is not empty
|
# and if index.tmp.html exist and is not empty
|
||||||
if [[ ${pages_in_array} == "index.${file_ext}" && ${blog_in_index} == "true" && -s ${project_dir}/blog/index.tmp.html ]]; then
|
if [[ ${pages_in_array} == "index.${file_ext}" && ${blog_in_index} == "true" && -s ${project_dir}/blog/index.tmp.html ]]; then
|
||||||
_blog_idx_for_index
|
|
||||||
local blog_index_file=$(<${project_dir}/blog/index.tmp.html)
|
local blog_index_file=$(<${project_dir}/blog/index.tmp.html)
|
||||||
pages_tpl=$( awk -v new_blog="$blog_index_file" '{sub(/BLOGINDEX/, new_blog)} 1' <(echo "${pages_tpl}") )
|
pages_tpl=$( awk -v new_blog="$blog_index_file" '{sub(/BLOGINDEX/, new_blog)} 1' <(echo "${pages_tpl}") )
|
||||||
else
|
else
|
||||||
@ -982,6 +981,6 @@ function _zhtml() {
|
|||||||
|
|
||||||
# Time to run the first function
|
# Time to run the first function
|
||||||
_blogs
|
_blogs
|
||||||
|
_add_blog_list_to_index
|
||||||
_pages
|
_pages
|
||||||
# _add_blog_list_to_index
|
|
||||||
_sitemap
|
_sitemap
|
Loading…
Reference in New Issue
Block a user