Skip to content

feat(web): score entries without a body from the text of their fields - #59

Merged
ermos merged 1 commit into
mainfrom
feat/seo-without-body
Oct 15, 2026
Merged

ermos merged 1 commit into
mainfrom
feat/seo-without-body

Conversation

@ermos

@ermos ermos commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • The SEO panel only read the body field. Entries without one, like the pages of a files collection whose layout lives in the site code, always scored 0 words.
  • Without a body field, the analyzed text is now the text, string and list fields of the entry, in order, minus the SEO title, description, keywords and image fields.
  • For those entries the Markdown checks (H1, subheadings, images, links) are skipped and 300 words are enough.
  • Docs: the SEO section says how such entries are analyzed.

Tests

seo.test.ts: field text gathering, intro keyword found in the fields, no subheading check, word count threshold.

@ermos
ermos force-pushed the feat/seo-without-body branch from 6fde375 to e0f8ac3 Compare October 15, 2026 14:24
@ermos
ermos merged commit 4ec4c45 into main Oct 15, 2026
6 checks passed
@ermos
ermos deleted the feat/seo-without-body branch October 15, 2026 14:25
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