Skip to content

Add hidden RSS source link for link posts and corresponding styles#57

Open
sids wants to merge 1 commit intomainfrom
codex/add-link-to-top-of-link-posts
Open

Add hidden RSS source link for link posts and corresponding styles#57
sids wants to merge 1 commit intomainfrom
codex/add-link-to-top-of-link-posts

Conversation

@sids
Copy link
Owner

@sids sids commented Mar 1, 2026

Motivation

  • Ensure link-type posts include an explicit RSS source link in the post HTML so feed readers can surface the original source while keeping visual output unchanged for normal page views.

Description

  • Add rssSourceLink markup in postTemplate to render a <p class="rss-source-link"> that links to post.link when present in src/templates/post.ts.
  • Insert the rssSourceLink into the .post-content area immediately before the post HTML output in postTemplate.
  • Add CSS rules in styles/input.css to hide .rss-source-link (display: none) and to remove the top margin on the following element (.post-content > .rss-source-link + * { margin-top: 0; }).
  • Update src/templates/post.test.ts to assert the RSS source link is present for link posts while keeping existing expectations intact.

Testing

  • Ran unit tests with bun test; the updated postTemplate test (src/templates/post.test.ts) passed.
  • No other automated test failures were reported.

Codex Task

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 1, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
sids-in 4304592 Commit Preview URL

Branch Preview URL
Mar 01 2026, 12:31 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant