Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Respect the limit of 80 characters per line
  • Loading branch information
lpinca committed Oct 15, 2015
commit f8463333c1eeedb6ae44537100b8d6641a2f7333
17 changes: 12 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,15 @@ CoC](https://github.com/rust-lang/rust/wiki/Note-development-policy#conduct).
## Code editing

### Adding new pages

1. Create new page content including the layout, title and copy.
2. Update ```/locale/en/site.json``` to provide page link attributes.
3. Update the relevant ```/layout``` to add a link to the new page.

#### Create the page content
Create a new markdown file in ```/local/en```. As specified in the [README.md](./README.md#layout), initial development happens in English.

Create a new markdown file in ```/local/en```. As specified in the
[README.md](./README.md#layout), initial development happens in English.

At the top of the markdown file, set a page the title and layout.

Expand All @@ -157,17 +160,21 @@ layout: contribute.hbs
```

#### Update locale site.json to add link attributes
Open ```local/en/site.json``` and find the appropriate page structure. Add a new object defining the link attributes.

Open ```local/en/site.json``` and find the appropriate page structure.
Add a new object defining the link attributes.

```
"event": {
"link": "get-involved/events",
"text": "Events"
"link": "get-involved/events",
"text": "Events"
}
```

#### Update the layout to add a link
Using the example layout, open ```/layouts/contribute.hbs``` and add your new link to the markup. It's essential to update the handlebars paths to site.json.

Using the example layout, open ```/layouts/contribute.hbs``` and add your new
link to the markup. It's essential to update the handlebars paths to site.json.

```
{{site.locale}}/{{site.getinvolved.events.link}}
Expand Down