From 0fde859d0182d5ab61f52bc7a68a546a79672425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 23:05:21 +0100 Subject: [PATCH] Adding more debug info --- qsgen2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qsgen2 b/qsgen2 index bd9842b..fe6b6d7 100755 --- a/qsgen2 +++ b/qsgen2 @@ -319,15 +319,19 @@ function _pages() { page_content=$( echo ${page_content} | grep -v \#title ) # 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} ) # 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} ) # Replace every #tagline in pages_tpl + if (${debug}) echo "_pages: Replacing tagline" pages_tpl=$( sed -e "s|#tagline|${site_tagline}|g" ${pages_tpl} ) # Replace #updated with today's date and #version with Name and Version to footer + if (${debug}) echo "_pages: _last_updated in pages_tpl" pages_tpl=$( _last_updated ${pages_tpl} ) # Run a cleanup if in case something was left out