From 394681aedb9c98f32b9ee0ec139f3ec56aa7739c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 21:52:52 +0100 Subject: [PATCH] Minor bug fixes again --- qsgen2 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qsgen2 b/qsgen2 index 91fe610..560d4ae 100755 --- a/qsgen2 +++ b/qsgen2 @@ -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}