summaryrefslogtreecommitdiff
path: root/src/lib/template.source.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/template.source.sh')
-rw-r--r--src/lib/template.source.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/template.source.sh b/src/lib/template.source.sh
index 6201647..cd38b3d 100644
--- a/src/lib/template.source.sh
+++ b/src/lib/template.source.sh
@@ -688,7 +688,11 @@ prepare_template_render_var__config_html() {
context_value="${THUMBHEIGHT:-}"
;;
TITLE)
- context_value="$TITLE"
+ # Always defaulted by apply_config_defaults; degrade to empty if
+ # somehow unset, matching the other config cases above. The :-
+ # default also silences SC2153 (a lowercase "title" local in another
+ # --check-sourced module makes shellcheck suspect a misspelling).
+ context_value="${TITLE:-}"
;;
*)
config_error "unknown template render config $source_name"