Phase 5 part 4: landing pages per buying signal

Each signal's page lists its landing pages with their Gitea status, live
address and 30-day visitors from Plausible, and builds a new one. Pages
can be duplicated as variants (B, C…, with their own utm_content), taken
off the site through a pull request that deletes the file, or have their
pull request closed. The scorecard counts live pages. Schema 23.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 14:19:55 -07:00
co-authored by Claude Opus 5.5
parent 11b80b6461
commit 062fcf2e59
17 changed files with 674 additions and 33 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ func TestCheck(t *testing.T) {
- q: Why?
a: "[Read more](/missing/)"
`
ch, err := Check(c, in, "https://site.example/", "churches")
ch, err := Check(c, in, "https://site.example/", "churches", "")
if err != nil {
t.Fatal(err)
}
@@ -88,12 +88,12 @@ func TestCheck(t *testing.T) {
"- type: hero\n title: [x\n": "valid YAML",
"": "must be a list",
} {
if _, err := Check(c, in, "https://site.example/", ""); err == nil || !strings.Contains(err.Error(), want) {
if _, err := Check(c, in, "https://site.example/", "", ""); err == nil || !strings.Contains(err.Error(), want) {
t.Errorf("%q: %v, want %q", in, err, want)
}
}
// Without a campaign, links stay as they are.
ch, _ = Check(c, "- type: hero\n ctas:\n - url: /pricing/\n", "https://site.example/", "")
ch, _ = Check(c, "- type: hero\n ctas:\n - url: /pricing/\n", "https://site.example/", "", "")
if strings.Contains(ch.Sections, "utm_") {
t.Errorf("tagged without a campaign: %s", ch.Sections)
}