From 1aaa29702bbd84bd8d8fe499d394130206d8722c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 14:05:49 +0100 Subject: [PATCH] Ugh... _pages need more work --- qsgen2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 6fe661c..ad28e97 100755 --- a/qsgen2 +++ b/qsgen2 @@ -322,12 +322,13 @@ function _pages() { do echo "${green}Generating Page: ${pages_in_array}${end}" # Read the file once - if (${debug}) echo "_pages: Loading page_content once" + if (${debug}) echo "_pages: Loading page_content once - ${pages_in_array}" local page_content="$(<${pages_in_array})" # Grab the title from the Page if (${debug}) echo "_pages: Grepping for page_title" page_title=$( echo ${page_content} | head -2 | grep \#title | cut -d= -f2 ) + if (${debug}) echo "_pages: ${page_title}" # Remove the #title line from the buffer. No longer needed. if (${debug}) echo "_pages: Removing #title line from page_content"