Skip to content

Seo and llm endpoints#22

Merged
driveton merged 3 commits intomainfrom
seo-and-llm-endpoints
Feb 26, 2026
Merged

Seo and llm endpoints#22
driveton merged 3 commits intomainfrom
seo-and-llm-endpoints

Conversation

@driveton
Copy link
Owner

Summary

  • Add <meta name="description"> tags to book and leafable show views, improving search engine snippets and social preview cards
  • Expand the LLM-friendly text endpoint (/llms.txt) to include a detailed per-book table of contents with direct links to each page, making the full content hierarchy discoverable by LLMs and crawlers
  • Fix the LLM endpoint query to use accessable_or_published (instead of published only) and eager load leaves: :leafable to prevent N+1s
  • Fix malformed og:image/twitter:image URLs where root_url was being prepended to url_for(attachment), which already returns an absolute URL, resulting in a double-slash (e.g. https://example.com//rails/active_storage/...)

@driveton driveton merged commit 868ed75 into main Feb 26, 2026
4 checks passed
@driveton driveton deleted the seo-and-llm-endpoints branch February 26, 2026 16:22
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