GTBitsOfGood / website

Our website, built from the ground up with Svelte + Sapper to connect nonprofits, students, and everyone else in between with Bits of Good 🚀

Home Page:https://bitsofgood.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Work out architecture for generating project pages

opened this issue · comments

Action items

Figure out modifications to rollup-plugin-content-loader to generate pages based on entries
Out of scope: field changes to the Project content model, final UI for project landing pages

To research

Rather than building separate pages for each project, it would be nice to dynamically create project pages based on json files. This could be an array of projects coming from Contentful for a directory of json (depending on final implementation)

Note: Sapper offers a blog template that does something similar. It also allows viewing the .json directly with a URL param, which is convenient for easy downloads and slow internet.

  • Use this section of the Sapper docs as a guide for loading projects by slug.
  • Print some contents of the json to the page. This doesn't need to be formatted in any way for this issue; just something to prove that it's working. It should be loaded under the /projects route: /projects/[team name]