diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-27 21:30:21 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-27 21:30:21 +0300 |
| commit | 51d09a37b3ed1402407d95ea76a76188bc2cc042 (patch) | |
| tree | e84c7dd60a155226a0b3dc5b85a8bee700a36a70 | |
| parent | 37aba4a930d9b3cf1dce817ed12a5f0f76c00fc8 (diff) | |
showcase: rename SVG to showcase-rank-history.svg, link at top of gemtext
- Rename output file from rank-history.svg to showcase-rank-history.svg so
it sits alongside the showcase.gmi.tpl with a consistent name prefix.
- Move the rank-history link from below the intro paragraph to immediately
after the date line, making it the first thing a reader sees.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | internal/showcase/showcase.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/showcase/showcase.go b/internal/showcase/showcase.go index b7c1f5b..fbae2b7 100644 --- a/internal/showcase/showcase.go +++ b/internal/showcase/showcase.go @@ -905,12 +905,13 @@ func (g *Generator) formatGemtext(summaries []ProjectSummary) string { // Generated date at the top builder.WriteString(fmt.Sprintf("Generated on: %s\n\n", time.Now().Format("2006-01-02"))) + // Link to the interactive SVG rank history graph — placed at the very top + // so it is the first thing a reader sees after the date line. + builder.WriteString("=> showcase-rank-history.svg Interactive Project Rank History Graph (SVG)\n\n") + // Introduction paragraph builder.WriteString("This page showcases my side projects, providing an overview of what each project does, its technical implementation, and key metrics. Each project summary includes information about the programming languages used, development activity, releases, and licensing. The projects are ranked by score, which combines recent activity, project size, tag history, and whether the project has shipped a release.\n\n") - // Link to the interactive SVG rank history graph generated alongside this file. - builder.WriteString("=> rank-history.svg Interactive Project Rank History Graph (SVG)\n\n") - // Template inline TOC builder.WriteString("<< template::inline::toc\n\n") @@ -1152,7 +1153,7 @@ func (g *Generator) writeRankHistorySVGFile(summaries []ProjectSummary) error { svgContent := GenerateRankHistorySVG(summaries) - targetFile := filepath.Join(targetDir, "rank-history.svg") + targetFile := filepath.Join(targetDir, "showcase-rank-history.svg") if err := os.WriteFile(targetFile, []byte(svgContent), 0644); err != nil { return fmt.Errorf("failed to write rank history SVG: %w", err) } |
