The site is built using Hugo - a static site generator. We are currently using Netlify for build and hosting.
While the blog and main site are visually integrated, the blog is served on a separate domain blog.eleuther.ai, with a corresponding config-blog.toml.
- Install Hugo
- Clone this repository.
- Create a new branch for your work.
- Use the Hugo dev server locally to test your changes.
- Commit your branch with changes.
- Create a PR to merge your branch into master and discuss on Discord.
- When the branch is merged, a Netlify build will be triggered for both the blog and main site.
To run the development server on localhost for the main site:
hugo server -D
To load the blog instead:
hugo server -D --config config-blog.toml
To bind on another IP apart from localhost and change the baseURL (ensuring the links work):
hugo server --bind=BIND-IP --baseUrl=IP-OR-DOMAIN -D
Directory | Description |
---|---|
content |
Underyling content for the main site |
content-blog |
Underyling content for the blog |
static/images |
Images for both sites. |
themes/eai-theme |
We use a single theme for both the main site and the blog. |
- add an empty header markdown with the class
content-block
->## {class="content-block"}
- after that line, add 2 containers as 2 elements of the list. In CSS it is defined that first list
<ul>
below content-block header will display items horizontally. (only the first one, any other list elements will be displayed as expected)