Changing how I replace text
This commit is contained in:
parent
0fde859d01
commit
d41abe2193
6
qsgen2
6
qsgen2
@ -320,15 +320,15 @@ function _pages() {
|
||||
|
||||
# Insert page_content into pages_tpl by replacing the BODY tag present there
|
||||
if (${debug}) echo "_pages: Replacing BODY with page_content in pages_tpl"
|
||||
pages_tpl=$( sed -e "s|BODY|${page_content}|" ${pages_tpl} )
|
||||
pages_tpl=$( echo ${pages_tpl} | sed -e "s|BODY|${page_content}|" )
|
||||
|
||||
# Replace every #pagetitle in pages_tpl
|
||||
if (${debug}) echo "_pages: Replacing #pagetitle in pages_tpl"
|
||||
pages_tpl=$( sed -e "s|#pagetitle|${page_title}|g" ${pages_tpl} )
|
||||
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#pagetitle|${page_title}|g" )
|
||||
|
||||
# Replace every #tagline in pages_tpl
|
||||
if (${debug}) echo "_pages: Replacing tagline"
|
||||
pages_tpl=$( sed -e "s|#tagline|${site_tagline}|g" ${pages_tpl} )
|
||||
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#tagline|${site_tagline}|g" )
|
||||
|
||||
# Replace #updated with today's date and #version with Name and Version to footer
|
||||
if (${debug}) echo "_pages: _last_updated in pages_tpl"
|
||||
|
Loading…
Reference in New Issue
Block a user