summaryrefslogtreecommitdiff
path: root/share/templates
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-17 23:21:03 +0300
committerPaul Buetow <paul@buetow.org>2026-06-17 23:21:03 +0300
commit61890e0bd98262a55b3afff495ebfead33d76b96 (patch)
tree9422f31856e205f6e9374a14c5205027f912d458 /share/templates
parent7c94be57437ecdc9cadeb95bc4c26a25040163a9 (diff)
Add configurable SOURCE_URL footer link; release 0.9.00.9.0
The footer "Site generated ... with <link>" was hardcoded to the shuriken.sh repository. Make it configurable via the SOURCE_URL config variable and the --source-url CLI flag (defaulting to the shuriken.sh repo, so existing sites are unchanged). The footer derives the displayed text from the URL by stripping its scheme. Plumbed through apply_config_defaults, CLI override targets/spec, --print-config, the verbose effective-config log, and the header template's new render_source_url_html (config_html) render var. Documented in shuriken.default.conf and README; added a generation test asserting a custom SOURCE_URL replaces the default footer link, and updated the print-config and header render-var-subset expectations. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'share/templates')
-rw-r--r--share/templates/default/header.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/templates/default/header.tmpl b/share/templates/default/header.tmpl
index 9a412fb..37c3559 100644
--- a/share/templates/default/header.tmpl
+++ b/share/templates/default/header.tmpl
@@ -299,7 +299,7 @@ END
if [ "${render_show_header_bar}" = 'yes' ]; then
cat <<END
<div class="header animate-opacity">
- Site generated at ${render_current_date_text} with <a href="https://codeberg.org/snonux/shuriken.sh">codeberg.org/snonux/shuriken.sh</a>
+ Site generated at ${render_current_date_text} with <a href="${render_source_url_html}">${render_source_url_html#*://}</a>
-
&copy; by Paul Buetow
END