The cityofzion.io website source: https://cityofzion.io
Very simple, no JS necessary. Using Hugo, a fast static website generator.
- On OSX with homebrew:
brew install hugo
- Or download a release from here: https://github.com/gohugoio/hugo/releases
This setup needs at least Hugo version 0.37.1.
Start development mode (with hot reloading):
hugo server -D
Then you can visit the generated site at http://localhost:1313. As soon as source files change, hugo builds and reloads the page.
There are several Node.js gulp tasks. For instance, to produce minified production builds,
just run gulp build
. It will now export a build to the public folder.
- Install Node.js
- Run
npm install
(oryarn
)
Get an API key for Google Docs:
- Create project on https://console.developers.google.com/apis/dashboard.
- Click Enable APIs and enable the Google Sheets API
- Go to Credentials, then click Create credentials, and select Service account key
- Choose New service account in the drop down. Give the account a name, anything is fine.
- For Role I selected Project -> Service Account Actor
- For Key type, choose JSON (the default) and download the file. This file contains a private key so be very careful with it, it is your credentials after all
- Save the as "./google-api-key/google-api-key.json"
Retrieve new team data:
gulp retrieveData