-
Notifications
You must be signed in to change notification settings - Fork 57
How To Make CCL Website Changes
- Edit the _data/students.yaml file.
Each student should have a name and image:
- name: Andrew Keller
image: andrew_keller.jpg
The spacing is important. Make sure it matches the other students. The ordering doesn't matter, the students will be sorted by name.
- Upload the student's image to the images/students folder.
- Edit the _data/news.yaml file.
Each event should be formatted as follows. The spacing is important, make sure it is exactly as shown. The ordering of event's doesn't matter, they will be sorted by date.
- event_name: LANSCE Radiation Testing
date: 2019-10-1
description: >
Students from the CCL travelled to LANSCE...
images:
- news_2019/lansce1.jpg
- news_2019/lansce3.jpg
- news_2019/lansce2.jpg
The date must be in YYYY-MM-DD format. The day
is not shown on the page, so it doesn't matter, although you can use it to sort events within the same month.
Each event needs an event_name
and date
. The description
and images
are optional. If you include images, it looks best with 2 or 3.
The news page is configured to only show the 10 most recent events.
- Upload the images to the images/news_ folder.
After you save/commit your changes, the website will automatically build. Your changes will be available at https://byuccl.github.io/ soon after you save. In Chrome you may need to press Ctrl+F5 to fully refresh the page.
If you don't see your changes, check the latest commits. Your change should have a green checkmark next to it. If it has a red X, look at your changes and see if you can spot the error.
If the website updates correctly, it will be available at https://ccl.ee.byu.edu/ after about 2 minutes. You can check the progress of the website copy on the actions tab.
If you want to make changes to the website layout (not just the YAML data files), please create a pull request.