Looking for the TransportationCamp website? Go here!
This document is intended to orient TransportationCamp organizers and
The transportationcamp.org
website is hosted using GitHub Pages, a service
of GitHub. After creating a GitHub account and being
granted access, you can edit pages on transportationcamp.org
over the Web, without any special tools.
- Create a GitHub account, if you don't already have one.
- Contact a member of the TransportationCamp team to get access to the repository--they'll need your GitHub username.
- Log in to GitHub, then navigate
to the
transportationcamp.org
repository. - Find the file you want to edit, click on its name, then click the arrow next to the pencil icon and select "Open
with
github.dev
". - This opens the website in an editing environment in your browser. You can edit other files, upload, delete, and move files, create folders, etc.
- When you are done with your edits, click on the
Source Control
icon on the left sidebar (looks like a branch), summarize your changes in theMessage
field, then clickCommit and Push
. - If all goes well, the website should update in a few minutes with your changes. If the website doesn't update, you
can see the failed build and what you might need to fix in the
Actions
tab at the top of the repository page.
Every TransportationCamp event gets its own page, which is linked from the homepage. This is visible
at transportationcamp.org/events/<name of camp>
, and exists in the folder events/<name of camp>
, where the name of
the camp is something like nyc-2023
.
It is highly recommended to duplicate an existing camp's folder in events
to start, and edit the content to fit the
needs of your camp.
The main page for your camp is index.markdown
, which is written
in Markdown. Most basic formatting is supported directly in
Markdown, but you can also use HTML tags should you desire more customization or need to embed YouTube videos or
registration widgets. To include images, upload them to your event folder, and reference them in the file with an
HTML <img>
tag
or Markdown's !
notation.
Be sure to change the metadata at the top of the page to reflect the name and date of your camp.
You will also need to upload a logo at logo.png
which will be displayed at the top of the page.
It is highly recommended to optimize all images before uploading them using a service such as TinyPNG.
This is the image that appears in large format on transportationcamp.org
. It will be shown at a variety of aspect
ratios depending on the user's screen size, but the center of the image will always be centered in view. In general,
there is no need for the image to be taller than half its width. Bear this in mind when cropping.
Optimize the image with TinyPNG, then upload it to the assets/event-images
folder. The
filename does not have to match your camp name, but make note of it for Step 3.
Edit the file _data/events.yml
. At the bottom of the file, add a blank line, then paste in the template below, and
modify it with your Camp's details.
- title: PHL
subtitle: Summer Gathering
year: 2023
date: 2023-06-24 23:59:59
url: /events/phl2023-summer
register_url: https://tcphl23summer.eventbrite.com/?aff=tcwebsite
background_img: philly-23-summer-lastyrprizesjpg.jpg
What do you need to change?
title
should reflect the name of your Camp; usually its location.subtitle
is optional, though you can use it to show ancillary details, such as if you are running a virtual event or have more than one event that yearyear
is the year of your event.date
is the date of your event. Leave the time set to23:59:59
.url
andregister_url
specify the links for more information about the camp and for participants to register. If your Camp isn't yet open for registration, just omit theregister_url
line. If your Camp's information page is hosted attransportationcamp.org
(as is usually the case), then theurl
will be set to/events/<name of camp>
.background_img
is the filename from Step 2 above.
Note that this is a YAML file, so the indentation of lines is important--the first line is prefixed by a hyphen and a space, while the following lines are prefixed by two spaces. (If you copy and paste this example, you'll already have the right indentation!)
You can edit your camp page as often as you want. Don't forget to put your registration URL in _data/events.yml
when
it opens.
When your event concludes, it will remain at the top of the homepage until the site is rebuilt, usually by someone making an edit. You can force a rebuild by making a trivial edit on your Camp page and saving your changes.
There are five main steps to building the site locally on your computer:
- Install Jekyll and Ruby
- Clone the repository to your computer
- The first time you build the website, run
bundle install
- Run
bundle exec jekyll serve
- If all goes well, you will be able to see
transportationcamp.org
athttp://localhost:4000
.
Learn more at GitHub's documentation page.