Hello! If you've stumbled upon this (or more likely, I showed you what this is because I got excited), you're currently looking at the code for a website hosted by MIT through something called AFS, a distributed file system. Details on how to make one for yourself can be found here.
Ensure you have the following programs installed on your computer:
I used the Shell theme, which can be found here or here. Follow the instructions found on either website (the Github site will probably be the most updated/accurate though).
These are instructions for future me, so that I don't forget.
- Pull the repository and edit whatever you have to change. If you want, edit
./static/.htaccess.mit
file and follow instructions here to create access priviledges. - Run
hugo server -w -D
to test your changes locally. If it looks fine, make sure to check if the URL would work on the remote server. If so, proceed. - Run
hugo
(or alternatively, to save space,hugo --minify
) to build the website. All static website files, such asindex.html
should be present in./public/
. - SSH into Athena using
ssh [email protected]
(and do all the log-in stuff), navigate to the remove website folder located at~/www/
and delete all files currently present by usingrm -r ./*
. - Back in your local machine, copy all files to the remote website folder using the command
scp -r ./public/ [email protected]:~/www/
.
Consider automating this in the future using Github Actions?