This is the static website for a2go.org! It is generated automatically via hugo and a github action from changes made to the a2go/a2go repository source. Edits made here directly may cause merge conflicts!
Make changes to the a2go/a2go repository source (markdown files there, nothing here!) and merge to master. 7 minutes later, our website is fully baked. Mmmm... smells delicious!
We use Hugo for generating the static files in this repository https://a2go.org.
The source is found in that repository's master
branch. The static site is generated to that repository's public
directory, which is a git submodule pointing to this repository.
As mentioned [the GitHub Pages documentation][ghorgs], you can host a organization page in addition to project pages. Here are the key differences in GitHub Pages websites for Organizations:
- You must use a repository named
<YOUR-ORGNAME>.github.io
to host your generated content - Content from the
master
branch will be used to publish your GitHub Pages site Your Hugo source files and the generated content are published into two different repositories.
-
Create a
<YOUR-ORGNAME>
(e.g.blog
) repository on GitHub. This repository will contain Hugo's content and other source files. -
Create a
<YOUR-ORGNAME>.github.io
GitHub repository. This is the repository that will contain the fully rendered version of your Hugo website. -
git clone git@github.com:<YOUR-ORGNAME>/<YOUR-ORGNAME>.git && cd <YOUR-ORGNAME>
-
git submodule add -b master git@github.com:<YOUR-ORGNAME>/<YOUR-ORGNAME>.github.io.git public
. This creates a git [submodule][https://git-scm.com/book/en/v2/Git-Tools-Submodules]. Now when you run thehugo
command to build your site topublic
, the createdpublic
directory will have a different remote origin (i.e. hosted GitHub repository). -
Paste your existing Hugo project into a new local
<YOUR-ORGNAME>
repository. Make sure your website works locally (hugo server
orhugo server -t <YOURTHEME>
) and open your browser to http://localhost:1313. -
Once you are happy with the results:
- Press Ctrl+C to kill the server
- cd public; git add -A; git commit -am "New Update"; git push; cd ..; git add -A; git commit -am "New Update"; git push
-
Next get bored of so many steps. Automate it by adding a github action for maintaining peak flavor and never manually touch this repository again.