Giter VIP home page Giter VIP logo

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

  • When a new person joins the team, get their profile photo in .jpg or .png formats
  • Add their profile photo to the themes/static/assets/staff-imgs folder, name it like this: firstname.jpg or firstname.png
  • Follow the instructions above to build the site locally and preview changes.
  • Edit the content/ourteam.html file, add team members in <div id="staff"> by adding a new <li class="col-xs-12 col-md-6 col-lg-4"> block
  • Make sure that their name, job title and photo are correct
  • Submit a PR
  • Once your PR has been approved by a reviewer, who will also send you a preview of your changes (in the form of a Pantheon link), check your preview then merge your PR. If you are not happy with the changes, commit to the same branch, which will generate another Pantheon preview.
  • Merge your PR
  • Reach out to someone with server access (currently, that would be @skinnylatte, @aekong and @henryjiang-sfgov) to deploy with the following commands

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

  • Never ever edit files in /public directly (this is hugo generated)
  • This repo is a very basic site, with very few (what hugo calls) content types
  • Refer to Hugo documentation at https://gohugo.io/documentation/

San Francisco Digital Services's Projects

San Francisco Digital Services doesn’t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.