Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.8 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.8 KB

My Athena Site :D

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.

How to Make a Similar Website

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).

How to Publish

These are instructions for future me, so that I don't forget.

  1. 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.
  2. 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.
  3. Run hugo (or alternatively, to save space, hugo --minify) to build the website. All static website files, such as index.html should be present in ./public/.
  4. 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 using rm -r ./*.
  5. 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?