diff options
Diffstat (limited to 'internal/showcase')
| -rw-r--r-- | internal/showcase/gemtext_format.go | 2 | ||||
| -rw-r--r-- | internal/showcase/showcase_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/showcase/gemtext_format.go b/internal/showcase/gemtext_format.go index 11935e7..26c93f7 100644 --- a/internal/showcase/gemtext_format.go +++ b/internal/showcase/gemtext_format.go @@ -232,6 +232,6 @@ func writeProjectLinks(builder *strings.Builder, summary ProjectSummary) { builder.WriteString(fmt.Sprintf("=> %s View on GitHub\n", summary.GitHubURL)) } if summary.CgitURL != "" { - builder.WriteString(fmt.Sprintf("=> %s View in cgit\n", summary.CgitURL)) + builder.WriteString(fmt.Sprintf("For cgit access go to c-git dot f3s dot buetow dot org slash %s\n", summary.Name)) } } diff --git a/internal/showcase/showcase_test.go b/internal/showcase/showcase_test.go index 09d707f..625414f 100644 --- a/internal/showcase/showcase_test.go +++ b/internal/showcase/showcase_test.go @@ -162,8 +162,8 @@ func TestFormatGemtext_IncludesCgitLink(t *testing.T) { }, }) - if !strings.Contains(content, "=> https://cgit.f3s.buetow.org/cpuinfo/ View in cgit\n") { - t.Fatalf("cgit link was not rendered: %s", content) + if !strings.Contains(content, "For cgit access go to c-git dot f3s dot buetow dot org slash cpuinfo\n") { + t.Fatalf("cgit hint text was not rendered: %s", content) } } |
