summaryrefslogtreecommitdiff
path: root/src/lib/template.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-13 09:38:37 +0300
committerPaul Buetow <paul@buetow.org>2026-06-13 09:38:37 +0300
commit3ace65858ebce3af6b1795a4417095626c037aa7 (patch)
tree4654562555270096a68ec2a4b85be284bf774e71 /src/lib/template.source.sh
parent4c148998e65107e6bea01325060d728731e08aab (diff)
jm0: centralize runtime config defaults
Diffstat (limited to 'src/lib/template.source.sh')
-rw-r--r--src/lib/template.source.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/template.source.sh b/src/lib/template.source.sh
index c7d9ded..f24244b 100644
--- a/src/lib/template.source.sh
+++ b/src/lib/template.source.sh
@@ -427,19 +427,19 @@ prepare_template_render_vars() {
config_html)
case "$source_name" in
HEIGHT)
- context_value="${HEIGHT:-}"
+ context_value="$HEIGHT"
;;
MAXPREVIEWS)
- context_value="${MAXPREVIEWS:-}"
+ context_value="$MAXPREVIEWS"
;;
ORIGINAL_BASEPATH)
- context_value="${ORIGINAL_BASEPATH:-}"
+ context_value="$ORIGINAL_BASEPATH"
;;
THUMBHEIGHT)
- context_value="${THUMBHEIGHT:-}"
+ context_value="$THUMBHEIGHT"
;;
TITLE)
- context_value="${TITLE:-}"
+ context_value="$TITLE"
;;
*)
config_error \
@@ -450,7 +450,7 @@ prepare_template_render_vars() {
html_escape_to render_value "$context_value"
;;
original_basepath_is_set)
- if [ -n "${ORIGINAL_BASEPATH:-}" ]; then
+ if [ -n "$ORIGINAL_BASEPATH" ]; then
render_value='yes'
else
render_value='no'
@@ -475,7 +475,7 @@ prepare_template_render_vars() {
fi
;;
tarball_include)
- render_value="${TARBALL_INCLUDE:-no}"
+ render_value="$TARBALL_INCLUDE"
;;
*)
config_error "unknown template render field kind $kind"