Working on _blog_idx_for_index
This commit is contained in:
parent
e2ded4e9f6
commit
8f943e47a0
4
qsgen2
4
qsgen2
@ -535,7 +535,7 @@ function _blog_idx_for_index() {
|
|||||||
# 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
|
||||||
|
|
||||||
debug=true
|
local debug=true
|
||||||
|
|
||||||
#if [[ ${updated_blogs} = "true" ]]; then
|
#if [[ ${updated_blogs} = "true" ]]; then
|
||||||
|
|
||||||
@ -546,6 +546,7 @@ function _blog_idx_for_index() {
|
|||||||
|
|
||||||
for meta_str in ${BLOG_META_STR_ARRAY[@]}
|
for meta_str in ${BLOG_META_STR_ARRAY[@]}
|
||||||
do
|
do
|
||||||
|
local debug=true
|
||||||
# Split meta_str into individual metadata components
|
# Split meta_str into individual metadata components
|
||||||
local -a meta_array=("${(@s/||/)meta_str}")
|
local -a meta_array=("${(@s/||/)meta_str}")
|
||||||
|
|
||||||
@ -558,6 +559,7 @@ function _blog_idx_for_index() {
|
|||||||
# Iterate over each component and extract information
|
# Iterate over each component and extract information
|
||||||
if (${debug}) echo "${red}_blog_idx_for_index: Iterate over each component and extract information${end}"
|
if (${debug}) echo "${red}_blog_idx_for_index: Iterate over each component and extract information${end}"
|
||||||
for component in "${meta_array[@]}"; do
|
for component in "${meta_array[@]}"; do
|
||||||
|
local debug=true
|
||||||
case "${component}" in
|
case "${component}" in
|
||||||
SDATE:*) sdate=${component#SDATE: } ;;
|
SDATE:*) sdate=${component#SDATE: } ;;
|
||||||
BTITLE:*) btitle=${component#BTITLE: } ;;
|
BTITLE:*) btitle=${component#BTITLE: } ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user