lib/blog.js now reads content/blog/<slug>/ (meta.md + fr.md/en.md): listing shows the requested language with fallback to the first available one, getBlogPost(slug, lang) reports untranslated posts via an untranslated field, and the draft/share accessors keep parsing <slug>-<token> from meta.md. Draft filtering stays keyed on the shared draftsVisible() rule, now exported from lib/content. /blog/[slug] renders the default language with an FR/EN switch when a post exists in both; a new /blog/[slug]/[lang] route serves the other language (static params only mint languages with content). A missing language renders an honest banner linking to the one that exists. yarn post scaffolds the folder shape. Flat collections are untouched.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| adhd | Loading commit data... | |
| asd | Loading commit data... | |
| blog | Loading commit data... | |
| cosmicfest | Loading commit data... | |
| couple | Loading commit data... | |
| fleurs | Loading commit data... | |
| hydra | Loading commit data... | |
| oblique | Loading commit data... | |
| parvagues | Loading commit data... | |
| poesie | Loading commit data... | |
| starry-nights | Loading commit data... | |
| talks | Loading commit data... | |
| tdah | Loading commit data... | |
| tsa | Loading commit data... | |
| layout.tsx | Loading commit data... | |
| page.js | Loading commit data... |