Skip to content

kingdom-code/kingdom-code

Repository files navigation

Kingdom Code

Netlify Status

Editing the events

Events are stored in src/_data/events.json

Add new events at the top in the format:

  {
    "name": "Meetup",
    "date": "2018-10-18",
    "url": "https://eventbrite.com/…",
    "description": "This is an event description"
  },

Adding people

People are stored in src/_data/people.json

Add a new person with the format:

  {
    "name": "Patrick Bokšan-Cullen",
    "team": ["London"],
    "img": "patrick.jpg",
    "bio": "Patrick looks after microBUILD in London."
  },

Avatars should be saved to src/_assets/img/people

Development

To get this up and running on your own computer you need to have Node and NPM installed. Find out how here.

Once you have installed NPM in the command line run the following line in this folder:

  • npm install
  • npm run dev

You'll now have a local server running at http://localhost:8080.

This is built on top of Eleventy because it is great. One of the nice things about 11ty is it's super simple documentation.

Behind the scenes Webpack is handling JS (src/_assets/_js) and SCSS (src/_assets/_scss).

Deploy

Pushing to master will automagically deploy to Netlify, which spits out the site at kingdomcode.org.uk.

However if you want to test something… npm run build is your friend.