Reflex
  • Blocks
    • Header
    • Hero
    • Features
    • Call to action
    • Forms
    • Pricing
    • Team
    • Testimonials
    • Cards
    • Footer
    • Posts
    • Videos
  • Examples
  • Learn
  • Videos
  • Docs
  • Theme

    Theme reference

    • Colors
    • Font family
    • Font size
    • Font weight
    • Line height
    • Box shadow
    Create a theme Extend base
arshadcnv0.5.3
Reflex
Reflex

Directory 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.

Learn more about blocks

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.

Learn more about images

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.

Learn more about navs

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.

Learn more about pages
InstallationConfiguration

© 2020 Reflex

  • Blocks
  • Examples
  • Learn
  • Docs
  • Github