Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(front-matter): describe variable published #2066

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion source/docs/front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ Setting | Description | Default
`title` | Title | Filename (posts only)
`date` | Published date | File created date
`updated` | Updated date | File updated date
`comments` | Enables comment feature for the post | true
`comments` | Enables comment feature for the post | `true`
`tags` | Tags (Not available for pages) |
`categories` | Categories (Not available for pages) |
`permalink` | Overrides the default permalink of the post. Permalink should end with `/` or `.html` | `null`
`excerpt` | Page excerpt in plain text. Use [this plugin](/docs/tag-plugins#Post-Excerpt) to format the text |
`disableNunjucks` | Disable rendering of Nunjucks tag `{{ }}`/`{% %}` and [tag plugins](/docs/tag-plugins) when enabled | false
`lang` | Set the language to override [auto-detection](/docs/internationalization#Path) | Inherited from `_config.yml`
`published` | Whether the post should be published | For posts under `_posts`, it is `true`, and for posts under `_draft`, it is `false`

#### Layout

Expand Down
3 changes: 2 additions & 1 deletion source/ru/docs/front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ date: 2013/7/13 20:46:25
`title` | Заголовок | Filename (posts only)
`date` | Дата публикации | Дата создания файла
`updated` | Дата обновления | Дата обновления файла
`comments` | Включение поддержки комментариев в посте | true
`comments` | Включение поддержки комментариев в посте | `true`
`tags` | Теги (Недоступно для страниц) |
`categories` | Категории (Не доступно для страниц) |
`permalink` | Переопределяет ссылку по умолчанию. Должна заканчиваться `/` или `.html` | `null`
`excerpt` | Отрывок страницы в виде простого текста. Используйте [этот плагин](/ru/docs/tag-plugins#Отрывок-поста) для оформления текста |
`disableNunjucks` | Отключить отображение тегов Nunjucks `{{ }}`/`{% %}` и [плагины тегов](/ru/docs/tag-plugins) при включении
`lang` | Установите язык для переопределения [автоопределения](/ru/docs/internationalization#Путь) | Берётся из `_config.yml`
`published` | Whether the post should be published | For posts under `_posts`, it is `true`, and for posts under `_draft`, it is `false`


#### Макет
Expand Down
3 changes: 2 additions & 1 deletion source/zh-cn/docs/front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ date: 2013/7/13 20:46:25
`title` | 标题 | 文章的文件名
`date` | 建立日期 | 文件建立日期
`updated` | 更新日期 | 文件更新日期
`comments` | 开启文章的评论功能 | true
`comments` | 开启文章的评论功能 | `true`
`tags` | 标签(不适用于分页) |
`categories` | 分类(不适用于分页)|
`permalink` | 覆盖文章的永久链接,永久链接应该以 `/` 或 `.html` 结尾 | `null`
`excerpt` | 纯文本的页面摘要。使用 [该插件](/zh-cn/docs/tag-plugins#文章摘要和截断) 来格式化文本 |
`disableNunjucks` | 启用时禁用 Nunjucks 标签 `{{ }}`/`{% %}` 和 [标签插件](/zh-cn/docs/tag-plugins) 的渲染功能 | false
`lang` | 设置语言以覆盖 [自动检测](/zh-cn/docs/internationalization#路径) | 继承自 `_config.yml`
`published` | 文章是否发布 | 对于 `_posts` 下的文章为 `true`,对于 `_draft` 下的文章为 `false`

## 布局

Expand Down
3 changes: 2 additions & 1 deletion source/zh-tw/docs/front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ date: 2013/7/13 20:46:25
`title` | 標題 | 文章的檔案名
`date` | 建立日期 | 檔案建立日期
`updated` | 更新日期 | 檔案更新日期
`comments` | 開啟文章的留言功能 | true
`comments` | 開啟文章的留言功能 | `true`
`tags` | 標籤(不適用於分頁) |
`categories` | 分類(不適用於分頁)|
`permalink` | 覆蓋文章網址 |
`excerpt` | Page excerpt in plain text. Use [this plugin](/docs/tag-plugins#Post-Excerpt) to format the text |
`disableNunjucks` | Disable rendering of Nunjucks tag `{{ }}`/`{% %}` and [tag plugins](/docs/tag-plugins) when enabled
`lang` | Set the language to override [auto-detection](/docs/internationalization#Path) | Inherited from `_config.yml`
`published` | Whether the post should be published | For posts under `_posts`, it is `true`, and for posts under `_draft`, it is `false`

### 佈局

Expand Down