https://github.com/opiproject/opiproject.org
OPI Hugo Website
https://github.com/opiproject/opiproject.org
Last synced: 9 months ago
JSON representation
OPI Hugo Website
- Host: GitHub
- URL: https://github.com/opiproject/opiproject.org
- Owner: opiproject
- License: apache-2.0
- Created: 2022-04-06T16:10:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T21:24:33.000Z (over 3 years ago)
- Last Synced: 2023-03-04T04:24:51.008Z (over 3 years ago)
- Language: HTML
- Size: 39.2 MB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Open Programmable Infrastructure Project Website
[](https://github.com/opiproject/opiproject.org/actions/workflows/linters.yml)
[](https://github.com/opiproject/opiproject.org/actions/workflows/gh-pages.yml)
[](https://github.com/opiproject/opiproject.org/actions/workflows/pages/pages-build-deployment)
Hugo code for OPI Project website.
## Development
There are two ways to test this out:
* Install hugo locally
* Use a pre-built docker image with hugo
### Install Hugo Locally
To work on the website, make sure you have hugo installed. You can do that by
following the instructions [here](https://gohugo.io/getting-started/installing/).
Once you have hugo installed, you can make changes to the website. To see
them locally, run the following in the root directory of the website:
```code
hugo server --disableFastRender
```
### Docker Image With Hugo
This method requires you to use a Docker image with hugo pre-built and installed
inside. [This image](https://hub.docker.com/r/klakegg/hugo/) works well for this
purpose.
```code
docker run --user=$(id -u):$(id -g) --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo:0.107.0-ext-ubuntu server --disableFastRender
```
## Development Output
Once you have hugo running by either installing it locally or using a Docker
image, this should give you something like the following as output:
```code
➜ opiproject.org git:(dev) ✗ hugo server --disableFastRender
Start building sites …
hugo v0.101.0+extended darwin/amd64 BuildDate=unknown
| EN
-------------------+-----
Pages | 18
Paginator pages | 0
Non-page files | 0
Static files | 41
Processed images | 0
Aliases | 1
Sitemaps | 1
Cleaned | 0
Built in 170 ms
Watching for changes in /Users/kmestery/git/OPI/opiproject.org/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /Users/kmestery/git/OPI/opiproject.org/config.toml, /Users/kmestery/git/OPI/opiproject.org/themes/ananke/config.yaml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
```
You can then browse to `http://localhost:1313/` to see your local changes.