Skip to content

lllwvlvwlll/cityofzion-website

 
 

Repository files navigation

Build Status

The cityofzion.io website source: https://cityofzion.io

Very simple, no JS necessary. Using Hugo, a fast static website generator.

Getting started

Install Hugo:

This setup needs at least Hugo version 0.37.1.

Development

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.

Production builds and Gulp tasks

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 (or yarn)

Retrieving team yaml files from Google docs

Get an API key for Google Docs:

  1. Create project on https://console.developers.google.com/apis/dashboard.
  2. Click Enable APIs and enable the Google Sheets API
  3. Go to Credentials, then click Create credentials, and select Service account key
  4. Choose New service account in the drop down. Give the account a name, anything is fine.
  5. For Role I selected Project -> Service Account Actor
  6. 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
  7. Save the as "./google-api-key/google-api-key.json"

Retrieve new team data:

gulp retrieveData

About

New website source for cityofzion.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.6%
  • CSS 33.4%
  • HTML 17.0%