From dc78e278a7324a5a7f14b940c72311fdae875787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sun, 28 Jan 2024 19:27:30 +0100 Subject: [PATCH] Moved 2 variables from config to main script --- qsgen2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index 825316e..b300b00 100755 --- a/qsgen2 +++ b/qsgen2 @@ -40,8 +40,6 @@ # export blog_list=${project_dir}/templates//blog_list.tpl # export blog_index=${project_dir}/templates//blog_index.tpl ################################################################################################### -# export today=$( date "+%Y-%m-%d - %T" ) -# export blogdate=$( date +%a-%Y-%b-%d ) # export blog_in_index=false VERSION="1.9.9.1 alpha" # Sun-2024-01-28 @@ -102,8 +100,6 @@ if (${debug}); then echo "${yellow} - theme=${theme}${end}" echo "${yellow} - project_dir=${project_dir}${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} - generator=${generator}${end}" fi @@ -128,6 +124,10 @@ pages_cache_file="${project_dir}/.pages_cache" 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 function _list_blog_idx() {