Minor bug fixes again

This commit is contained in:
Stig-Ørjan Smelror 2024-01-29 21:52:52 +01:00
parent dde648c656
commit 394681aedb

7
qsgen2
View File

@ -313,7 +313,7 @@ function _pages() {
page_title=$( echo ${page_content} | head -2 | grep '#title' | cut -d= -f2 )
# Remove the #title line from the buffer. No longer needed.
page_content=$( echo ${page_content} | grep -v #title )
page_content=$( echo ${page_content} | grep -v '#title' )
# HTML'ify the page content
page_content=$( ${engine} ${page_content} )
@ -339,12 +339,9 @@ function _pages() {
# Replace every #tagline in pages_tpl
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#tagline|${site_tagline}|g" )
# Replace #updated with today's date
# Replace #updated with today's date and #version with Name and Version to footer
pages_tpl=$( _last_updated ${pages_tpl} )
# Replace #version with the Name and Version of the script
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#version|${QSGEN} ${VERSION}|" )
# Run a cleanup if in case something was left out
_cleanup ${pages_tpl}