From 0d0010ca79e96347e7a9f5532c5d3d3763e7e345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 24 Feb 2024 23:12:15 +0100 Subject: [PATCH] _pages: Display page title instead of filename --- qsgen2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index d2693da..309e4b4 100755 --- a/qsgen2 +++ b/qsgen2 @@ -434,7 +434,9 @@ function _pages() { else local debug=false fi - + + _msg main "${0:t}_msg_3" + # Load the cache for Pages if (${debug}) _msg debug "${0:t}_msg_1" _pages_cache @@ -444,8 +446,6 @@ function _pages() { return fi - _msg main "${0:t}_msg_3" - if (( ${#pages_array[@]} > 0 )); then # If pages_array is not empty, we do work @@ -467,7 +467,7 @@ function _pages() { local pages_tpl="$(<${pages})" fi - _msg std " - ${pages_in_array%.*}.html" + # _msg std " - ${pages_in_array%.*}.html" # Read the file once if (${debug}) _msg debug "${0:t}_msg_9" " ${pages_in_array}" local page_content="$(<${pages_in_array})" @@ -496,6 +496,7 @@ function _pages() { fi done <<< ${page_content} fi + _msg std " - ${page_title}" if (${debug}) _msg debug "${0:t}_msg_11" " ${page_title}" # Remove the #title line from the buffer. No longer needed.