Skip to content

Commit 05aa837

Browse files
authored
Add tutorial on adding a post to the website (#10)
1 parent 217c4d0 commit 05aa837

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

_posts/2021-09-22-add-map-link.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: post
3+
date: 2021-09-22
4+
title: How to link this website to an existing map
5+
categories: blog
6+
tags:
7+
- tutorial
8+
---
9+
10+
1. Fork the [website's Github](https://github.com/rdmolony/codema-dev.github.io) (see [here](https://guides.github.com/activities/forking/)) - this creates a copy of the website just for you.
11+
12+
<img width="259" alt="fork" src="https://github-images.s3.amazonaws.com/help/bootcamp/Bootcamp-Fork.png">
13+
14+
2. On your fork add a new branch (see [here](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)) - this creates a sandbox in which you make changes to your hearts content, and delete if needs be!
15+
16+
<img width="259" alt="add-branch" src="https://user-images.githubusercontent.com/50016440/134347523-80dc5710-ece8-42d1-b807-68954ee6ce11.png">
17+
18+
3. Click `_posts` > `Add file` > `Create new file`
19+
20+
<img width="222" alt="add-post" src="https://user-images.githubusercontent.com/50016440/134348307-59cae177-8207-4cd9-9123-3414a6ec957f.png">
21+
22+
4. Create a new file called `YYYY-MM-DD-filename.md` (ex: `2021-09-22-marine-atlas.md`) and add your content.
23+
24+
> The section between the `---` symbols defines the metadata about your page (see [here](https://jekyllrb.com/docs/front-matter/) for options, [here](https://mmistakes.github.io/minimal-mistakes/year-archive/) for sample posts and [here](https://github.com/mmistakes/minimal-mistakes/tree/master/docs/_posts) for the sample posts Github)
25+
26+
<img width="950" alt="add-content-zoomed" src="https://user-images.githubusercontent.com/50016440/134348872-a5d05e78-9dea-435a-9b51-0b0dea4c9b9e.png">
27+
28+
5. Commit your new file to your branch
29+
30+
<img width="960" alt="commit-file" src="https://user-images.githubusercontent.com/50016440/134349923-499748e7-ee4b-4def-9fcc-a2b8eb306d78.png">
31+
32+
6. When you're happy with your edits go to [website's Github](https://github.com/rdmolony/codema-dev.github.io), click `Pull Reqeuest` and submit a pull request using your branch.
33+
34+
<img width="960" alt="create-pull-request" src="https://user-images.githubusercontent.com/50016440/134350683-809e3ea5-8741-4cf5-a476-6d8617ecdf32.png">
35+
36+
7. After a final review of the post, merge the changes in and delete your branch if you like
37+
38+
<img width="960" alt="merge-post" src="https://user-images.githubusercontent.com/50016440/134350984-3e205ce6-a124-48af-98e9-04eceec1d7fb.png">

0 commit comments

Comments
 (0)