Skip to content

Clean non-post theme sync#437

Merged
MikeMcQuaid merged 1 commit into
mainfrom
clean-non-post-theme-sync
Jun 8, 2026
Merged

Clean non-post theme sync#437
MikeMcQuaid merged 1 commit into
mainfrom
clean-non-post-theme-sync

Conversation

@MikeMcQuaid

Copy link
Copy Markdown
Member
  • Remove newsletter-only policy from synced non-post layouts.
  • Strip feed blocks even when Liquid whitespace changes.
  • Keep copied layout comments accurate for sites without feeds.

- Remove newsletter-only policy from synced non-post layouts.
- Strip feed blocks even when Liquid whitespace changes.
- Keep copied layout comments accurate for sites without feeds.
Copilot AI review requested due to automatic review settings June 8, 2026 13:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the theme-sync logic for non-post sites to remove newsletter-only policy details, more reliably strip feed include blocks despite Liquid whitespace variations, and keep copied layout comments accurate when feeds aren’t present.

Changes:

  • Adjust non-post layout rewrites to remove the Buttondown-specific form-action CSP entry.
  • Update copied layout comment text to refer only to jekyll-seo-tag (not jekyll-feed) for non-post sites.
  • Broaden the feed-block stripping regex to tolerate more Liquid whitespace differences and optional -%} endings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MikeMcQuaid MikeMcQuaid enabled auto-merge June 8, 2026 13:56
@MikeMcQuaid MikeMcQuaid merged commit 77fbcc8 into main Jun 8, 2026
27 checks passed
@MikeMcQuaid MikeMcQuaid deleted the clean-non-post-theme-sync branch June 8, 2026 16:45
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.

3 participants