Skip to content

Commit 872e402

Browse files
Correct page to post in Intro Docs (#1685)
There is a typo in the proposed markdown for teaching users how to add a new post to their site. The `layout` yaml front matter should be `post` not `page` Here's a link to the typo https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/adding-content-to-your-github-pages-site-using-jekyll#adding-a-new-post-to-your-site Co-authored-by: hubwriter <[email protected]>
1 parent 1edd1eb commit 872e402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/github/working-with-github-pages/adding-content-to-your-github-pages-site-using-jekyll.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Your theme includes default layouts, includes, and stylesheets that will automat
5151
4. Create a new file called _YYYY-MM-DD-NAME-OF-POST.md_, replacing _YYYY-MM-DD_ with the date of your post and _NAME-OF-POST_ with the name of your post.
5252
4. Add the following YAML frontmatter to the top of the file, replacing _POST TITLE_ with the post's title, _YYYY-MM-DD hh:mm:ss -0000_ with the date and time for the post, and _CATEGORY-1_ and _CATEGORY-2_ with as many categories you want for your post.
5353
```shell
54-
layout: page
54+
layout: post
5555
title: "<em>POST TITLE</em>"
5656
date: </em>YYYY-MM-DD hh:mm:ss -0000</em>
5757
categories: <em>CATEGORY-1</em> <em>CATEGORY-2</em>

0 commit comments

Comments
 (0)