diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-13 10:10:59 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-13 10:10:59 +0200 |
| commit | 1eac431601e477cd829984641efcc87e7b49345f (patch) | |
| tree | 93cbc87509d3fcbfbec29a77865a7c540dca0c38 /internal | |
| parent | cd57f5a015ae943e57fafd84136d58799de040a3 (diff) | |
modify link length
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/summary/summary.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/summary/summary.go b/internal/summary/summary.go index 0eaea5a..199d245 100644 --- a/internal/summary/summary.go +++ b/internal/summary/summary.go @@ -13,6 +13,8 @@ import ( "codeberg.org/snonux/gos/internal/entry" ) +const maxLinkLength = 80 + func Run(ctx context.Context, args config.Args) error { entries, err := deduppedEntries(args) if err != nil { @@ -72,7 +74,7 @@ func generateGemtext(args config.Args, entries []entry.Entry, title string) (str sb.WriteString("\n") for _, url := range urls { sb.WriteString("\n") - sb.WriteString(gemtextLink(args.GeminiCapsules, url, 100)) + sb.WriteString(gemtextLink(args.GeminiCapsules, url, maxLinkLength)) } } } |
