_blogs and _pages: Better information

This commit is contained in:
Stig-Ørjan Smelror 2024-02-03 09:53:47 +01:00
parent feacf88ffa
commit 3dc3ca512b

8
qsgen2
View File

@ -97,6 +97,8 @@ function _msg() {
other) other)
echo "${bold_yellow}${2}${end}" echo "${bold_yellow}${2}${end}"
;; ;;
sub)
echo "${magenta}${2}${end}"
*) *)
echo "${2}" echo "${2}"
;; ;;
@ -364,7 +366,7 @@ function _pages() {
pages_tpl="$(<${pages})" pages_tpl="$(<${pages})"
fi fi
_msg std "Generating Page: ${pages_in_array:l%.*}.html" _msg std "Generating Page: ${pages_in_array%.*}.html"
# Read the file once # Read the file once
if (${debug}) _msg debug "_pages: Loading page_content once - ${pages_in_array}" if (${debug}) _msg debug "_pages: Loading page_content once - ${pages_in_array}"
local page_content="$(<${pages_in_array})" local page_content="$(<${pages_in_array})"
@ -438,7 +440,7 @@ function _pages() {
else else
_msg info "No new or updated Pages" _msg sub "- No new or updated Pages found"
export new_updated_pages=false export new_updated_pages=false
fi fi
@ -564,7 +566,7 @@ function _blogs() {
export new_updated_blogs=true export new_updated_blogs=true
else else
_msg info "No new or updated Blogs detected." _msg sub "- No new or updated Blogs found"
export new_updated_blogs=false export new_updated_blogs=false
fi fi
_blog_idx_for_index _blog_idx_for_index