umd-mith / airwaves

Unlocking the Airwaves
https://mith.umd.edu/airwaves/
MIT License
9 stars 2 forks source link

Exhibits build is breaking #18

Closed trevormunoz closed 3 years ago

trevormunoz commented 3 years ago

The fix for this is in #17 — just creating the issue here in case future us needs to go back and look for something related to this.

Making it possible to edit the About page via Netlify CMS creates another markdown file in the repo under /static/data. Previously, the queries for building parts of the site had (safely) assumed that markdown files there were exhibits and had all the bits of frontmatter that exhibits needs. When about.md started getting passed in … 💥

The solution was to add a filter clause to GraphQL based on the site path to distinguish exhibits from about.