- HTML 48.9%
- CSS 38.3%
- JavaScript 12.8%
| archetypes | ||
| assets/icons | ||
| content | ||
| data | ||
| themes/CompSoc | ||
| .gitignore | ||
| hugo.toml | ||
| README.md | ||
CompSocSite
The static remake of the front-facing CompSoc site using Hugo. To work on the site and test your changes, install Hugo, clone this repository and run hugo server in the project root.
Updating the site
Sponsors
The list of current CompSoc sponsors can be updated by modifying the list in data/sponsors.json. The parts of the website which list CompSoc's sponsors will automatically pull from this JSON file when the site recompiles, meaning that there's no need to update pages manually.
Navigation Bar
The website's navigation bar can be updated by modifying data/nav.json. There are two lists in the file — one for the left-aligned items in the navbar and one for the right-aligned items. Items can be standard links or hover targets for sub-menus containing links. Sub-menu items may have icons if desired; this is currently (as of November 2026) used to give the social links icons in the Follow Us sub-menu.
Social Media Links
When adding, removing or modifying a social media link, two files must be updated. The first is data/socials.json, which will update the links used in the website footer. The second is the navbar, which will not automatically pull from the JSON file — instead, the data/nav.json file must be updated in the same manner as any other navbar change.
Updating Committee
Updates to the lists of people on Committee require modifying one or two files. To update someone's name, college, course or pronouns, all that's needed is to update their entry in the list of current and former Committee members in data/people.json. If a current/former member has a website, adding a website field with the URL as its contents will turn instances of their name on the Committee page into hyperlinks pointing to that site.
To add a new person to Committee, you must first create a new entry for them in data/people.json. The only field strictly required to be filled is the college field, with all others being optional. Ideally, the Committee member's name alone should be the key for their entry. If they share a name with another current/former Committee member, you can suffix their name with a number or some other value for disambiguation — in this case, you should add the actual name you want displayed as a name field.
Once the individual has an entry in data/people.json, you'll need to add them to the list for the Committee they are/were on. These files are in the data/committee folder, named with the year each Committee was first elected. Similarly, to add an entirely new Committee, create a file with the year it was elected and populate that file using the same (fairly intuitive) format as the other files.
Oddities
Upcoming Events
The Upcoming Events section on the home page is populated by (wait for it) pulling from the published CSV version of a Google Sheet owned by the CompSoc account, which runs a script (between 11pm-12am) daily to pull the events in the next seven days from the CompSoc Events Google Calendar and put them in the spreadsheet. For this to work properly, the website must recompile shortly after midnight every day.
This could alternatively be implemented through JavaScript, but this method means the panel will work even with JavaScript disabled.