Skip to content

Conversation

@rochacbruno
Copy link
Owner

Summary

  • Implements multi-site support allowing subsites within content directories
  • Each subsite can have independent configuration, theme, and search index
  • Subsites are accessible at their own URL paths (e.g., /site1/)

Changes

  • Modified site generation to detect and process directories with site.yaml files
  • Updated server routing to handle subsite directory requests
  • Fixed various compilation issues with proper type handling
  • Added example subsite at example/content/site1/
  • Created documentation for the multi-site feature

Test plan

  • Build the project: cargo build
  • Generate site with subsite: cargo run example
  • Verify subsite files are generated at example/site/site1/
  • Start server: cargo run example --serve
  • Access main site at http://localhost:8000/
  • Access subsite at http://localhost:8000/site1/
  • Verify subsite has independent theme (theme_template)
  • Check search functionality is independent
  • Verify RSS feeds are generated for subsite

Closes #329

- Add ability to create subsites within content directories
- Each subsite with site.yaml is processed independently
- Subsites have their own themes, configs, and search indexes
- Server correctly routes to subsite paths
- Add example subsite at example/content/site1/
- Document the multi-site feature

Closes #329
- Fix content isolation to prevent subsite content in main site
- Add site_path prefix to all URLs in subsites
- Fix search index generation for subsites
- Update UrlFor function to handle subsite context
- Content now properly renders in subsites

Remaining issues:
- Subsite tags still appear in main site
- Need to test shortcode resolution
@rochacbruno rochacbruno closed this Aug 3, 2025
@rochacbruno rochacbruno reopened this Aug 4, 2025
@rochacbruno rochacbruno force-pushed the main branch 2 times, most recently from f591e30 to 24958c8 Compare August 6, 2025 13:38
@rochacbruno rochacbruno force-pushed the main branch 2 times, most recently from 9533e15 to a567641 Compare December 22, 2025 21:40
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.

feat: Subsites

2 participants