Commits to the main branch will automatically deploy. Be sure to make changes on another branch and then pull request to the main for changes to go live.
Once you have a copy of the code on your local machine, you can run the command below to start a dev server to preview your changes.
npm run dev
Open http://localhost:3000 with your browser to see the result.
Tip: If you are getting 'module does not exist errors', make sure you have installed all the libraries by running npm install
in the root directory.
Find different config files in the /config/
directory and use yml syntax to edit text or other values on a page. Most of the config values that edit text on the page support markdown syntax as well as html and plain text.
When a config asks for an image (or a file), you can upload it anywhere in the /public/
directory, and give it the path relative to that directory.
Although not required, it is highly recommended to place images in the /public/imgs/[PAGE_NAME]/
folder and then reference it in the config with url: "/imgs/[PAGE_NAME]/[IMAGE_NAME.png]"
For example, if you wanted to upload the image kickoff.png
to the carousel on the home page, you can upload the file to /public/imgs/index/kickoff.png
and then reference it in the config like this:
# Inside /config/index.yml
parent:
name: "Kickoff for the 2023-2024 season!"
url: "/imgs/index/kickoff.png"
Directory tree:
├───config
│ index.yml # <- The config file you edit
└───public
└───imgs
└───index
kickoff.png # <- The image you upload