dirtybirdnj / vtj-final-final

its either this or nothing. final final for real verticaltubejig.com
https://vtj-final-final.vercel.app
0 stars 0 forks source link

Different templates for home / product / blog pages #8

Closed dirtybirdnj closed 1 year ago

dirtybirdnj commented 1 year ago

Currently there is one layout.js file that controls display / layout for all pages

https://github.com/dirtybirdnj/vtj-final-final/blob/main/src/components/layout.js

There should be three new files in the /components directory

home - homepage display product - /store/$product template for each product post /blog/$post template for each blog post

Each of these templates should encapsulate the custom layout for these page types.

dirtybirdnj commented 1 year ago

it makes more sense to do a simple conditional tree within the layout.js file than to break it out into components

dirtybirdnj commented 1 year ago

There is currently functionality for displaying:

  1. root level pages
  2. /blog markdown files
  3. /shop markdown files

still need to build out product display UI and add snipcart buttons but the main thing here is complete