fix(hugo): use strings.TrimSpace instead of trim in footer partial (#417)

* fix(hugo): use strings.TrimSpace instead of trim in footer partial Hugo's trim function requires 2 args (string + cutset). The footer template was calling it with 1 arg via pipe, causing build failure. Replace with strings.TrimSpace which takes a single arg. Fixes #415 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: update podcast link test to match strings.TrimSpace Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Juan Manuel Servera committed Jun 12, 2026 at 13:36 UTC c96e658e27dfd8b9f2ce0d60fb6bb8078e912498
2 files changed +2 -2
layouts/partials/footer.html
+1 -1
@@ -9,7 +9,7 @@
9 <a href="https://github.com/jmservera/SquadScope" target="_blank" rel="noopener">GitHub</a>
10 <a href="{{ "index.xml" | absLangURL }}">RSS</a>
11 <a href="{{ "archive/" | absLangURL }}">Archive</a>
12 - {{- with site.Params.podcast_url | trim }}
12 + {{- with site.Params.podcast_url | strings.TrimSpace }}
13 <a href="{{ . | safeURL }}" target="_blank" rel="noopener noreferrer">Podcast</a>
14 {{- end }}
15 </nav>
tests/test_podcast_link.py
+1 -1
@@ -18,7 +18,7 @@ def test_footer_conditionally_renders_podcast_link() -> None:
18 """Footer template must conditionally render podcast link from site param."""
19 footer = (REPO_ROOT / "layouts" / "partials" / "footer.html").read_text(encoding="utf-8")
20 # Must trim before `with` so whitespace-only values are treated as falsy
21 - assert "site.Params.podcast_url | trim" in footer
21 + assert "site.Params.podcast_url | strings.TrimSpace" in footer
22 # safeURL marks the value as trusted (bypasses scheme filtering) — safe here
23 # because the value comes from controlled site config, not user input.
24 assert "safeURL" in footer