Welcome to the repository for the WMRRA.com website!
This project uses a static site generator called Hugo.
-
Install Hugo.
$ git clone https://github.com/gohugoio/hugo.git $ cd hugo $ go install --tags extended
-
From the root of this repository run
hugo server
from a commandline. -
browse to http://localhost:1313
If you would like to suggest a feature or report a bug, you can file an issue.
We welcome contributions from the community. A good place to start is to create an issue and to discuss the change you would like to make before proceeding.
Here are a few common updates you may want to make to the site.
News posts are nested under content/news
It is likely easiest to copy the last post and use it as a template for your newest post.
Each post needs to include the following fore-data:
---
title : "A title of a post"
date : "2021-01-01"
draft : false
description: "A brief description of the post that shows on the front page."
The schedule is defined at data/schedule.yml
The racer numbers are defined at csv/race-numbers.csv
The menu is defined at data/menu.yml
Menus are under top menu names and include a name and a link. For example:
- name: Resources
children:
- name: Schedule
link: /race/schedule
- name: Rulebook
link: /race/rulebook
Sponsors are listed in a data file at data/sponsors.yml
A sponsor entry is defined as follows:
- name : Sponsor Name
image : images/sponsors/sponsor-placeholder.jpg
description : >
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aspernatur
necessitatibus ullam, culpa odio.
social:
facebook : https://www.facebook.com/
twitter : https://twitter.com/
website : https://website.com/
Contacts are listed in a data file at data/contacts.yml
A contact is defined as follows:
- position: Position Name
name: First Last
phone:
email:
Pages on this site can be found at content or layouts/partials