Working on _blog_idx_for_index
This commit is contained in:
parent
8f943e47a0
commit
18af4c60b2
6
qsgen2
6
qsgen2
@ -496,9 +496,9 @@ function _blogs() {
|
|||||||
BLOG_META_STR_ARRAY=()
|
BLOG_META_STR_ARRAY=()
|
||||||
|
|
||||||
# Iterate over make_blog_array
|
# Iterate over make_blog_array
|
||||||
for blog in "${make_blog_array[@]}"
|
for blog in "$( cat ${blog_cache_file} )"
|
||||||
do
|
do
|
||||||
|
local blog=$( echo ${blog} | cut -d: -f1 )
|
||||||
local content="$(<"${blog}")"
|
local content="$(<"${blog}")"
|
||||||
sdate=( $( echo ${content} | grep DATE | sed "s|DATE\ ||" | sed "s|\-|\ |g" ) )
|
sdate=( $( echo ${content} | grep DATE | sed "s|DATE\ ||" | sed "s|\-|\ |g" ) )
|
||||||
btitle=$( echo ${content} | grep BLOG_TITLE | cut -d' ' -f2- )
|
btitle=$( echo ${content} | grep BLOG_TITLE | cut -d' ' -f2- )
|
||||||
@ -533,7 +533,7 @@ function _blog_idx_for_index() {
|
|||||||
# This function generates the file blog/index.tmp.html
|
# This function generates the file blog/index.tmp.html
|
||||||
|
|
||||||
# We use _blogs to get the data to create the blog index
|
# We use _blogs to get the data to create the blog index
|
||||||
_blogs get_index
|
#_blogs get_index
|
||||||
|
|
||||||
local debug=true
|
local debug=true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user