Clay > Working with Code > Gatsby Pages
OverviewClayWorking with CodeGatsby Pages
Gatsby Pages

Based on the fetched Lana shop data, Gatsby generates a collection of pages. The Gatsby configuration accommodates the configured shop languages and will produce a multi-language page structure if the shop has additional languages set up. If there is only one language, the [language] prefix is removed from the page paths.

Home Page

Path: [language]/

Template: src/templates/home.tsx.

Refer to the following for more information:

Search Page

Path: [language]/search

Template: src/templates/search.tsx.

Refer to the following for more information:

Profile Page

Path: [language]/profile

Template: src/templates/profile.tsx.

The Profile page contains a dynamic customer menu with multiple sub-sections. It is only used for signed-in customers. The sign-in/sign-up forms are pop-up modal dialogs.

Page

Path: [language]/pages/<handle>

Template: src/templates/page.tsx.

Generic pages are generated for published content blocks marked with is_page = true.

Product

Path: [language]/products/<handle>

Template: src/templates/product.tsx.

Product pages are only generated for published products.

Refer to the following for more information:

Category

Path: [language]/<parentCategoryHandle>/<handle>

Template: src/templates/category.tsx.

Category pages are only generated for published categories marked with featured = true.

Refer to the following for more information:

NOTE

For non-featured categories, the src/templates/categoryPlaceholder.tsx template is used instead. This is a user-friendly placeholder. It explains that the category should be made featured for it to have a proper category page generated.

PREVIOUS
Page Load
NEXT
Effector State