-
Notifications
You must be signed in to change notification settings - Fork 155
Closed
Labels
Description
It would be great to see an example of implementing WP's template hierarchy with next+Faust.js.
For WP-to-headless devs, a big part of the transition is trying to implement everything WP gives you for free (also arguably a strong impetus for headless devs choosing WP as a backend), and both types of devs could benefit from some more advanced gqty examples.
An ideal example would:
- have a primary
pages/index.tsxthat usesnodeByUrifor hydration. - demonstrate how to fetch data from
post,pageandtaxonomytypes on thenodeByUriinterface. - implement a few template/layout components that use WP's template hierarchy, e.g.
<Template.Home />,<Template.Page />,<Template.Singular />, and maybe a custom template like<Template.FullWidthTemplate /> - Bonus: use Next.js Persistent Layouts for components like
<Header />and<Footer />.