The web site for host the pages of alc-beijing, normally we publish a WeChat public account article after creating a new post in this site.
- Install hugo.
- Run
git submodule init
- Run
git submodule update
- Run
hugo server --config config.dev.toml
- Access the site with "http://localhost:1313/"
To test the production environment locally (simulating GitHub Pages deployment):
- Run
hugo server --config config.toml --bind 127.0.0.1 --port 1313 --baseURL http://localhost:1313/alc-site/ --appendPort=false
- Access the site with "http://localhost:1313/alc-site/"
Note: config.toml
with baseURL = '/alc-site/'
for GitHub Pages deployment
- Clicking the fork button on the project page, then check out the alc-site from your forked repo.
- If you want to add a new page to the site, you can add a markdown file to content/post directory, please take the other files in that directory as an example.
- If you want to add an image file, you can put the file into content/images, and reference it in the markdown file.
- Adding the content into git and push back to your forked repo.
- Creating a PR to alc-site.