SFDigitalServices / sfdigitalservices

The SF Digital Services site
https://digitalservices.sfgov.org
1 stars 4 forks source link
hugo

CircleCI

Build locally

Get Hugo

via homebrew:

$ brew install hugo

or binary install:

Pick the appropriate binary from here: https://github.com/gohugoio/hugo/releases

Generate site

$ hugo

Serve it up

$ hugo server -w

Hit http://localhost:1313 to verify that the site was generated correctly

Create a new page

Creating a new page can be as simple as creating a file (xyz.html) in the /content folder. Or via the command line (at the root directory of this repo):

$ hugo new xyz.html

These new pages will follow the layout template in /themes/digitalservices/_default/single.html

How to add team members to website

As of August 2021, you no longer have sudo access to this server. This readme file is being updated to remove all mention of using sudo for git fetch.

$ cd /opt/rh/httpd24/root/var/www/html/digitalservices/public
$ git fetch --all
$ git reset --hard origin/gh-pages

Notes