summaryrefslogtreecommitdiff
path: root/README.md
blob: 6230dd739f4015d3f7be8ed5548db0be633fd6bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Getting Started

## Serving the site locally for development work

In the root directory of the repository:

```sh
$ cobalt serve
```

## Building the site for produciton

In the root directory of the repository:

```sh
$ cobalt build
```

## Updating pages and posts

There is a git-hook on the origin server that rebuilds and publishes the site
every time a push is made to the master branch. Site contributors need only make
changes to the text of the pages and posts, publish them with `cobalt`, commit
them, and then push them to master to see them go live.

Below is a step-by-step guide

### Adding a new post or page

Enter the folder where you want new content to go. Tell `cobalt` to template a
new post for you. Don't forget to provide a name for the post! You can verify
the contents if you wish.

```sh
$ cd posts
$ cobalt new "A New Tutoring Business"
[info] Created new posts "posts/a-new-tutoring-business.md"
$ cat a-new-tutoring-business.md
---
title: A New Tutoring Business
categories:
  - blog
layout: post.liquid
is_draft: true
---
(Post text goes here)
```