Commit 5f12d19
committed
fix: exclude research-spotlight dir from generic content collection (closes #113)
The 80 spotlight MDX files under content/content/reactome-research-spotlight
also matched the parent 'content' collection (path content/content),
yielding ~2880 "file in multiple collections" warnings every startup and
two conflicting edit schemas in the TinaCMS sidebar: one with
description/image (Content) and one with date/author/tags (Spotlights).
The frontmatter on disk uses date/tags, so the Spotlights collection is
the correct owner.
Add a match.exclude pattern (mirroring the existing news/** exclude on
the 'about' collection) so spotlight files belong to Spotlights only.
The Content sidebar entry now lists just the three real /content/*.mdx
pages (covid-19, index, orcid); spotlights remain editable under the
"Reactome Research Spotlights" sidebar entry. No routing or on-disk
changes; this is purely a CMS-side disambiguation.
Verified post-restart: warning count drops from ~2880 to 0, both
collections still in the generated schema, beta + admin both return 200.1 parent 8e99605 commit 5f12d19
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
Large diffs are not rendered by default.
0 commit comments