зеркало из https://github.com/github/docs.git
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 <hubwriter@github.com>
This commit is contained in:
Родитель
1edd1ebd06
Коммит
872e402612
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче