https://github.com/eleutherai/website
New website for EleutherAI based on Hugo static site generator
https://github.com/eleutherai/website
Last synced: over 1 year ago
JSON representation
New website for EleutherAI based on Hugo static site generator
- Host: GitHub
- URL: https://github.com/eleutherai/website
- Owner: EleutherAI
- Created: 2021-01-08T21:13:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T21:40:54.000Z (over 1 year ago)
- Last Synced: 2025-01-07T19:51:18.334Z (over 1 year ago)
- Language: HTML
- Size: 109 MB
- Stars: 4
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EleutherAI Website 2021
The site is built using [Hugo](https://gohugo.io) - 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.
## Development Process Overview
1. [Install Hugo](https://gohugo.io/getting-started/installing/)
2. Clone this repository.
3. Create a new branch for your work.
4. Use the Hugo dev server locally to test your changes.
5. Commit your branch with changes.
6. Create a PR to merge your branch into master and discuss on Discord.
7. When the branch is merged, a Netlify build will be triggered for both the blog and main site.
## Dev Environment
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`
## Project Layout
| 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. |
## How to display 2 containers that are horizontally aligned?
1. add an empty header markdown with the class `content-block` -> `## {class="content-block"}`
2. after that line, add 2 containers as 2 elements of the list. In CSS it is defined that first list `
- ` below content-block header will display items horizontally. (only the first one, any other list elements will be displayed as expected)