Moved 2 variables from config to main script

This commit is contained in:
Stig-Ørjan Smelror 2024-01-28 19:27:30 +01:00
parent b53798fac5
commit dc78e278a7

8
qsgen2
View File

@ -40,8 +40,6 @@
# export blog_list=${project_dir}/templates/<theme>/blog_list.tpl # export blog_list=${project_dir}/templates/<theme>/blog_list.tpl
# export blog_index=${project_dir}/templates/<theme>/blog_index.tpl # export blog_index=${project_dir}/templates/<theme>/blog_index.tpl
################################################################################################### ###################################################################################################
# export today=$( date "+%Y-%m-%d - %T" )
# export blogdate=$( date +%a-%Y-%b-%d )
# export blog_in_index=false # export blog_in_index=false
VERSION="1.9.9.1 alpha" # Sun-2024-01-28 VERSION="1.9.9.1 alpha" # Sun-2024-01-28
@ -102,8 +100,6 @@ if (${debug}); then
echo "${yellow} - theme=${theme}${end}" echo "${yellow} - theme=${theme}${end}"
echo "${yellow} - project_dir=${project_dir}${end}" echo "${yellow} - project_dir=${project_dir}${end}"
echo "${yellow} - www_root=${www_root}${end}" echo "${yellow} - www_root=${www_root}${end}"
echo "${yellow} - today=${today}${end}"
echo "${yellow} - blogdate=${blogdate}${end}"
echo "${yellow} - blog_in_index=${blog_in_index}${end}" echo "${yellow} - blog_in_index=${blog_in_index}${end}"
echo "${yellow} - generator=${generator}${end}" echo "${yellow} - generator=${generator}${end}"
fi fi
@ -128,6 +124,10 @@ pages_cache_file="${project_dir}/.pages_cache"
builtin cd ${project_dir} builtin cd ${project_dir}
# Let's put these here for now.
export today=$( date "+%Y-%m-%d - %T" )
export blogdate=$( date +%a-%Y-%b-%d )
# Let's create arrays of all the files we'll be working on # Let's create arrays of all the files we'll be working on
function _list_blog_idx() { function _list_blog_idx() {