From 4c31c31479801e94ce0c0bc94a8bb6ad1fc4ab93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 22:39:05 +0100 Subject: [PATCH] Let's see if it works now --- qsgen2 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/qsgen2 b/qsgen2 index 98f2f15..b3f1860 100755 --- a/qsgen2 +++ b/qsgen2 @@ -309,24 +309,14 @@ function _pages() { # Read the file once if (${debug}) echo "_pages: Loading page_content once" local page_content="$(<${pages_in_array})" - - #echo "PAGE CONTENT" - #echo "$page_content" - #exit - + # Grab the title from the Page if (${debug}) echo "_pages: Grepping for page_title" page_title=$( echo ${page_content} | head -1 | grep '#title' | cut -d= -f2 ) - echo "Page Title: ${page_title}" - exit - # Remove the #title line from the buffer. No longer needed. page_content=$( grep -v '#title' ${page_content} ) - echo "${page_content}" - exit - # HTML'ify the page content page_content=$( ${engine} ${page_content} )