Skip to content

Commit

Permalink
Correct page to post in Intro Docs (github#1685)
Browse files Browse the repository at this point in the history
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 <hubwriter@github.com>
  • Loading branch information
chrisdawww and hubwriter authored Dec 2, 2020
1 parent 1edd1eb commit 872e402
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Your theme includes default layouts, includes, and stylesheets that will automat
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.
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.
```shell
layout: page
layout: post
title: "<em>POST TITLE</em>"
date: </em>YYYY-MM-DD hh:mm:ss -0000</em>
categories: <em>CATEGORY-1</em> <em>CATEGORY-2</em>
Expand Down

0 comments on commit 872e402

Please sign in to comment.