Type in theme file locations
This commit is contained in:
parent
a2fdd22476
commit
37cc3727da
18
qsgen2
18
qsgen2
@ -35,10 +35,10 @@
|
|||||||
# export www_root=${HOME}/www_root/smelror.com
|
# export www_root=${HOME}/www_root/smelror.com
|
||||||
# #################################################################################################
|
# #################################################################################################
|
||||||
# I don't think these need to be here as they'll always be in the same place with the same names
|
# I don't think these need to be here as they'll always be in the same place with the same names
|
||||||
# export pages=${project_dir}/templates/<theme>/pages.tpl
|
# export pages=${project_dir}/themes/<theme>/pages.tpl
|
||||||
# export blogs=${project_dir}/templates/<theme>/blogs.tpl
|
# export blogs=${project_dir}/themes/<theme>/blogs.tpl
|
||||||
# export blog_list=${project_dir}/templates/<theme>/blog_list.tpl
|
# export blog_list=${project_dir}/themes/<theme>/blog_list.tpl
|
||||||
# export blog_index=${project_dir}/templates/<theme>/blog_index.tpl
|
# export blog_index=${project_dir}/themes/<theme>/blog_index.tpl
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
# export blog_in_index=false
|
# export blog_in_index=false
|
||||||
|
|
||||||
@ -324,7 +324,7 @@ function _pages() {
|
|||||||
do
|
do
|
||||||
|
|
||||||
if (${debug}) echo "_pages: Setting Pages template"
|
if (${debug}) echo "_pages: Setting Pages template"
|
||||||
local pages=${project_dir}/templates/${theme}/pages.tpl
|
local pages=${project_dir}/themes/${theme}/pages.tpl
|
||||||
|
|
||||||
# Let's check if we can access the pages.tpl file.
|
# Let's check if we can access the pages.tpl file.
|
||||||
# It not, exit script.
|
# It not, exit script.
|
||||||
@ -431,8 +431,8 @@ function _blogs() {
|
|||||||
# Regular blog creation process
|
# Regular blog creation process
|
||||||
#if [[ ! ${mode} ]]; then
|
#if [[ ! ${mode} ]]; then
|
||||||
|
|
||||||
if [[ -f ${project_dir}/templates/${theme}/blogs.tpl ]]; then
|
if [[ -f ${project_dir}/themes/${theme}/blogs.tpl ]]; then
|
||||||
local blog_tpl=$(<"${project_dir}/templates/${theme}/blogs.tpl")
|
local blog_tpl=$(<"${project_dir}/themes/${theme}/blogs.tpl")
|
||||||
else
|
else
|
||||||
echo "Unable to find theme template for Blogs."
|
echo "Unable to find theme template for Blogs."
|
||||||
exit
|
exit
|
||||||
@ -530,7 +530,7 @@ function _blog_idx_for_index() {
|
|||||||
|
|
||||||
echo "${yellow}_blog_idx_for_index: Initiating function${end}"
|
echo "${yellow}_blog_idx_for_index: Initiating function${end}"
|
||||||
|
|
||||||
local blog_list_tpl=$(<${project_dir}/templates/${theme}/blog_list.tpl)
|
local blog_list_tpl=$(<${project_dir}/themes/${theme}/blog_list.tpl)
|
||||||
|
|
||||||
# Truncate file before writing new one
|
# Truncate file before writing new one
|
||||||
: >| "${project_dir}/blog/index.tmp.html"
|
: >| "${project_dir}/blog/index.tmp.html"
|
||||||
@ -583,7 +583,7 @@ function _blog_index() {
|
|||||||
# This function generates the /blog/index.html file that gets its data from _blog_list_for_index()
|
# This function generates the /blog/index.html file that gets its data from _blog_list_for_index()
|
||||||
|
|
||||||
local debug=false
|
local debug=false
|
||||||
local blog_index_file=${project_dir}/templates/${theme}/blog_index.tpl
|
local blog_index_file=${project_dir}/themes/${theme}/blog_index.tpl
|
||||||
local blog_index=$(<${blog_index_file})
|
local blog_index=$(<${blog_index_file})
|
||||||
local blog_index_list=$(<${project_dir}/blog/index.tmp.html)
|
local blog_index_list=$(<${project_dir}/blog/index.tmp.html)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user