Skip to content

feat(linkedin-copy): keep cross-post above the LinkedIn mobile fold#47

Merged
superterran merged 1 commit into
mainfrom
feat/short-linkedin-copy
May 19, 2026
Merged

feat(linkedin-copy): keep cross-post above the LinkedIn mobile fold#47
superterran merged 1 commit into
mainfrom
feat/short-linkedin-copy

Conversation

@superterran
Copy link
Copy Markdown
Contributor

Summary

Shorten the LinkedIn cross-post body so the entire post fits above the LinkedIn mobile fold — no "...see more" truncation, no competing CTAs.

Why

The 250–400 word `linkedin_copy` block produced by `idea-generator.js` was ~1500 chars. micro.blog cross-posted the full text, but LinkedIn collapsed it at ~280–300 chars, inserting a `lnkd.in/...` "Read more" link to the micro.blog note alongside our `Full post:` link to the blog. Body cut mid-sentence, two links, ambiguous CTA.

Changes

  • `idea-generator.js` — schema description + free-text guidance rewritten: ≤280 chars total including URL, 1–3 short lines, lift verbatim sentences from the post.
  • `microblog-poster.js` — fallback Claude prompt (used when frontmatter `linkedin_copy` is missing) updated to the same constraints.
  • `content/blog/2026-04-25-devops-matters-more-when-ai-writes-code.md` — hand-tightened `linkedin_copy:` to opener + closer + URL (259 chars).

Final post text for that blog

```
AI code generation made your developers faster. It did not make your deployment pipeline wider.

DevOps is not a supporting function in this world. It is the binding constraint.

Full post: https://doughatcher.com/blog/devops-matters-more-when-ai-writes-code/
```

Test plan

  • Merge to main
  • Re-trigger blog-publish.yml with the same post_path
  • Confirm LinkedIn post shows the full body + one link, no "...see more"

🤖 Generated with Claude Code

The 250-400 word linkedin_copy generated by idea-generator was producing
~1500-char posts that micro.blog truncated when syndicating to LinkedIn,
leaving a "...see more" link to the micro.blog note alongside our intended
"Full post:" link. Two competing CTAs, body cut mid-sentence.

Target: ≤280 chars total including the URL line. 1-3 short lines, lifted
from the strongest sentences in the post itself.

- idea-generator.js: schema description + prompt rewritten for the tease
  format; new posts will be generated this way going forward.
- microblog-poster.js fallback prompt: same constraints.
- 2026-04-25-devops post: hand-tightened to opener + closer + URL (~259
  chars). Verified above-the-fold against LinkedIn mobile width.
@superterran superterran merged commit abe644d into main May 19, 2026
1 check passed
@superterran superterran deleted the feat/short-linkedin-copy branch May 19, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant