This repository contains ESC's website!
We're using Hugo as our Static Site Generator.
To make updates to the site or add a new post, we leverage pull requests to integrate your changes.
You can learn more about pull requests from this github article.
-
Make sure you have
hugo
installed. If you don't, follow this guide to install hugo -
Clone this repository using Git into your folder of choice:
git clone https://github.com/elonsoc/website.git
and now you're ready to make your changes!
Navigate into your new site’s directory and start it up.
cd website/
hugo serve -D
Your site is now running at https://localhost:1313!
hugo serve
starts a new webserver, builds the site, and begins the live reloading feature for faster iterative development.
When you make a change to the website, hugo
will automatically detect the change, rebuild the site, and reload your webpage!
The -D
option flag includes drafts, in case you were writing a new post.
Building for Github Pages is pretty simple.
Simply commit your changes and push them!
If your pull request is accepted for integration, our repository will automatically build the hugo site through a github action. You can see the yaml
file that set this automation up here.
After that, Github will propagate your changes to the world!