Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit c3b5044

Browse files
authored
Merge pull request #15 from githubtraining/audit-march-2019
Audit March 2019
2 parents c042e11 + e80790b commit c3b5044

File tree

8 files changed

+25
-15
lines changed

8 files changed

+25
-15
lines changed

config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ steps:
153153
filename: _config.yml
154154
action_id: file
155155
- type: gate
156-
left: '/^theme:\s?minima$/m'
156+
left: '/^theme:\s?jekyll-theme-minimal$/m'
157157
operator: test
158158
right: '%actions.file%'
159159
else:
@@ -165,6 +165,7 @@ steps:
165165
body: 07_create-blog-post.md
166166
data:
167167
branch: '%payload.pull_request.head.ref%'
168+
date: '%payload.pull_request.created_at%'
168169

169170
- title: Create a blog post
170171
description: Create a new file that will become your first blog post.

responses/01_class-introduction-issue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Welcome to GitHub Pages and Jekyll :tada:!
44

5-
In this course, you'll learn how to build and host a [GitHub Pages](https://pages.github.com) site. With GitHub Pages, you can host content like [documentation](https://flight-manual.atom.io/), [resumes](https://github.com/jglovier/resume-template), or any other static content you’d like.
5+
If you're new to GitHub Pages, or you want to learn how to build and host a [GitHub Pages](https://pages.github.com) site, you're in the right place. With GitHub Pages, you can host content like [documentation](https://flight-manual.atom.io/), [resumes](https://github.com/jglovier/resume-template), or any other static content you’d like.
66

77
In this course, you'll create a blog hosted on GitHub Pages and learn how to:
88

@@ -12,7 +12,7 @@ In this course, you'll create a blog hosted on GitHub Pages and learn how to:
1212

1313
### New to GitHub?
1414

15-
For this course, you'll need to know how to create a branch on GitHub, commit changes using Git, and open a pull request on GitHub. If you need a refresher on the GitHub flow, check out the [the Introduction to GitHub course]({{ host}}/courses/introduction-to-github).
15+
Before we can begin, you'll need to know how to create a branch on GitHub, commit changes using Git, and open a pull request on GitHub. If you need a refresher on the GitHub flow, check out the [Introduction to GitHub course]({{ host}}/courses/introduction-to-github).
1616

1717
### :keyboard: Activity: Turn on GitHub Pages
1818

responses/02_update-index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
## Step 2: Customize your homepage
22

3-
Great job! Now that GitHub Pages is enabled, you can view your website here: https://{{ user.username }}.github.io/{{ repo }}
3+
Great job! Now that GitHub Pages is enabled, you can view your website here: https://{{ user.username }}.github.io/{{ repo }}
4+
5+
__NOTE:__ You'll be updating your GitHub Pages site in the upcoming steps. To make things easier to view, I recommend that you open this link in another tab or window for quick access to view your changes.
46

57
You can customize your homepage by adding content to either an `index` file or the `README.md` file. GitHub Pages first looks for an `index` file. If an `index` file is found, GitHub Pages uses the content in the file to create the homepage. If an `index` file isn’t found, it uses the `README.md` to create the homepage.
68

79
Your repository has an `index.md` file so we can update it to include your personalized content.
810

911
### :keyboard: Activity: Create your homepage
1012

11-
1. Navigate to the **Code** tab of this repository, and browse to the `index.md` file.
13+
1. Navigate to the **Code** tab of this repository, and browse to the `index.md` file, or click this link [here](https://github.com/{{ owner }}/{{ repo }}/blob/master/index.md).
1214
1. In the upper right corner, click the :pencil2: pencil icon to open the file editor.
1315
1. Type the content you want on your homepage and remember, [you can use Markdown](https://help.github.com/articles/basic-writing-and-formatting-syntax/) to format your content.
1416
1. Scroll to the bottom, type a commit message, and click **Create a new branch for this commit and start a pull request**.

responses/02r_wrong-file-updated.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ It looks like you may have updated `{{ files }}` instead of `index.md`. Please u
22

33
### :keyboard: Activity: Create your home page
44

5-
1. On the **Code** tab, click the `index.md` file
5+
1. On the **Code** tab, click the `index.md` file, or use this link [here](https://github.com/{{ owner }}/{{ repo }}/blob/master/index.html).
66
1. Click the :pencil2: icon to enter edit mode and add a few lines of content. Remember, [you can use Markdown](https://help.github.com/articles/basic-writing-and-formatting-syntax/)
77
1. Scroll to the bottom and select the option to "Create a new branch for this commit and start a pull request"
88
1. Select **Propose file change**
@@ -14,4 +14,4 @@ It looks like you may have updated `{{ files }}` instead of `index.md`. Please u
1414
If you would like assistance troubleshooting the issue you are encountering, create a post on the [GitHub Community]({{ communityBoard }}) board. You might also want to search for your issue to see if other people have resolved it in the past.
1515

1616
<hr>
17-
<h3 align="center">Look for my next response in your pull request</h3>
17+
<h3 align="center">Look for my next response in your pull request</h3>

responses/05_change-theme.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ You can check out the `_config.yml` file on the **Code** tab of your repository.
1010

1111
### :keyboard: Activity: Modify the config file
1212

13-
Let's change the `_config.yml` so it's a perfect fit for your new blog. First, we need to use a blog-ready theme. For this activity, we will use a theme named `minima`.
13+
Let's change the `_config.yml` so it's a perfect fit for your new blog. First, we need to use a blog-ready theme. For this activity, we will use a theme named `jekyll-theme-minimal`.
1414

15-
1. Navigate to the **Code** tab of this repository, and browse to the `_config.yml` file.
15+
1. Navigate to the **Code** tab of this repository, and browse to the `_config.yml` file, or click this link [here](https://github.com/{{ owner }}/{{ repo }}/blob/master/_config.yml).
1616
1. In the upper right corner, click :pencil2: to open the file editor.
17-
1. Change `theme:` to **minima** and modify the other configuration variables such as `title:`, `author:`, and `description:` to customize your site.
17+
1. Change `theme:` to **jekyll-theme-minimal** so it shows in the `_config.yml` file as below:
18+
```
19+
theme: jekyll-theme-minimal
20+
```
21+
1. Modify the other configuration variables such as `title:`, `author:`, and `description:` to customize your site.
1822
1. Click **Create a new branch for this commit and start a pull request**.
1923
1. Open a pull request.
2024

responses/05r_wrong-theme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
It looks like you changed your theme, but for this activity we want to use `minima`.
1+
It looks like you changed your theme, but for this activity we want to use `jekyll-theme-minimal`.
22

3-
### :keyboard: Activity: Change the theme to minima
3+
### :keyboard: Activity: Change the theme to jekyll-theme-cayman
44

55
Let's change the theme to `minima`:
66

77
1. At the top of this Pull Request, click the **Files changed** tab
8-
1. Click the :pencil2: icon to enter edit mode and change the `theme:` to **minima**
8+
1. Click the :pencil2: icon to enter edit mode and change the `theme:` to **jekyll-theme-minimal**
99
1. Scroll to the bottom of the window to create a commit
1010
1. Enter a commit message then click **Commit changes**
1111

responses/07_create-blog-post.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ This pull request looks great so far. :sparkles: You've just edited the `_config
66

77
### :keyboard: Activity: Add some content to your blog
88

9+
**Shortcut Note**: Click this link [here](https://github.com/{{ owner }}/{{ repo }}/new/{{ branch }}/?filename=_posts/{{ date | date: "%Y-%m-%d" }}-my-first-blog-post.md) to automatically complete steps 1-4.
10+
911
1. On the "Code" tab, select your `{{ branch }}` branch
1012
1. Click **Create new file**
11-
1. Name the file `_posts/YYYY-MM-DD-title.md`, but replace the `YYYY-MM-DD` with today's date, and `title` with the title you'd like to use for your first blog post
13+
1. Name the file `_posts/YYYY-MM-DD-title.md`
14+
1. Replace the `YYYY-MM-DD` with today's date, and change the `title` of your first blog post if you'd like. _Note:_ If you do edit the title, make sure there are hyphens between your words.
1215

1316
- If your blog post date doesn't follow the correct date convention, you'll receive an error and your site won't build. For more information, see "[Page build failed: Invalid post date](https://help.github.com/articles/page-build-failed-invalid-post-date/)".
1417

responses/08_add-front-matter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This example adds a title and date to your blog post. There are other useful thi
1414
### :keyboard: Activity: Add Front Matter to your Blog Post
1515

1616
1. Click the "Files Changed" tab in this pull request
17-
1. Scroll past the config file, and find the file that you created
17+
1. There are two files in the "Files Changed" tab, the `_config.yml` file and the `_posts/YYYY-MM-DD-title.md` file. Make sure to edit the file in the `_posts` folder.
1818
1. Click on the pencil icon on the right side of the screen
1919
1. Type the following content at the top of your blog post:
2020

0 commit comments

Comments
 (0)