Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
W
www
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 1
    • Issues 1
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • PLN
  • www
  • Repository

Switch branch/tag
  • www
  • app
  • blog
  • language-nav.js
Find file
BlameHistoryPermalink
  • PLN (Algolia)'s avatar
    blog: accessors and routes for the folder model · 6a6670d9
    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.
    PLN (Algolia) authored Oct 06, 2026
    6a6670d9
language-nav.js 1.08 KB
EditWeb IDE
×

Replace language-nav.js

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.