We are adding support for Nextjs. Get in touch on Twitter to learn more.
See a demoDirectory Structure
The base Reflex structure is intended to provide a great starting point for building your site.
However, Reflex imposes no restrictions on how you organize your content.
Every theme exposes a contentPath
option that you can use to change where you place content files.
Structure
mysite├── content│ ├── blocks│ ├── images│ ├── navs│ └── pages├── .env.example├── .gitignore├── gatsby-config.js├── package.json└── README.md
content
The content directory contains all your site content. This is where you place your pages, blocks and images.
blocks
The blocks directory is for your re-usable blocks. Place your blocks here and reference them in your pages using the block name.
Example
<Block src="name-of-block" />
is for a block at content/blocks/name-of-block.mdx
.
images
The images directory is for your images. Add your image files here and use the Image
component to render them.
Example
<Image src="name-of-image.png" />
will render an image placed at content/images/name-of-image.png
.
navs
The navs directory is for navigation menus. Add your menus here and use the NavMenu
component to place them in blocks or pages.
Example
<NavMenu name="header" />
will render a nav placed at content/navs/header.mdx
.
pages
This directory is where you place your pages. Every file placed in the pages directory are automatically turned into pages with the page name as the slug.
Example
A page at content/pages/example.mdx
will turned into a page with the /example
path.