src/pages/plataforma-thinkwise

This directory powers both the overview page (/plataforma-thinkwise/) and every capability detail route (/plataforma-thinkwise/[slug]/). Use it as the reference when adding or fixing logic in the other collections (modelos-de-adocao, perspectivas-sobre-a-plataforma, temas-de-modernizacao, conceitos-de-desenvolvimento follow the same pattern).

Overview page (index.astro)

Detail page ([slug].astro)

Data flow

  1. getStaticPaths loads every content.md under src/content/plataforma-thinkwise/**/ and also any slugs that exist only via meta.yaml (ensures cards defined in data but not yet authored still build).
  2. For each page:

Rendering steps

  1. SectionIntro displays title/lead/excerpt (from frontmatter or capabilityData fallback).
  2. Body slot: wraps the Markdown content with the same illustrated backdrop pattern used on the overview page.
  3. AsideCards receives finalAsideSections, built by combining:
  4. relationSections iterates through the relations defined in meta.yaml and uses mapRelations() with the prebuilt relationMaps. It excludes the current slug to avoid self-references.
  5. Related cards render inside CollectionGrid. Each card adds a Tag slot that names the originating collection. The label/color pair is resolved through collectionInfo (landing metadata for each top-level section).

Behavior notes

Extending this pattern

If you introduce another collection that needs the same features:

  1. Copy the structure from this directory but extract duplicated code into helpers (e.g., a shared buildAsideSections function).
  2. Document the new behavior (and any deviations) in a README inside the new directory.