Let's see if it works now

This commit is contained in:
Stig-Ørjan Smelror 2024-01-29 22:39:05 +01:00
parent 7ff7c11781
commit 4c31c31479

12
qsgen2
View File

@ -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} )