Create activity
Your friends can edit and create new activities.
To edit an activity (did you spot a spelling mistake?) simply follow the Improve this page link at the top of most pages on bettermtl.com.
To create a new activity:
- Create a New file in the
_activities
directory - Copy the example activity bellow to get a head start, you can delete the
[optional]
details which you cannot specify at this time, for example you may not know thelocation
yet - come back later to edit and update the activity - Ensure the file name has the
.md
ending - Commit changes to save
In a few moments, you’ll see your changes appear on bettermtl.com
Example activity
The different lines explained
Specify cofiguration details at the top between ---
and ---
. This structured data tells jekyll (the static site generator used to create bettermtl.com) how to process the file.
Name the file in the following format: YYYY-MM-DD-title.md
Config for activities
Activity content
Write your content using markdown right bellow the file config (also known as front-matter data).
Get involved
(in order of difficulty ☺)
- Chat with us on gitter - anyone can do this!
- Locations (in
_locations
) and people (in_network
) work similarly to activities (in_activities
) - Add a translation: create new file, use same
ref
and add thelang
attribute in the front-matter, e.g.:"en"
for English (lang
defaults to"fr"
when not specified) - Submit new issues or comments on waffle
- Clone the repository and hack away at the code, send pull-requests
Fantastic, you are now an active contributor - thanks much!