From bcf15a7535636abc40f520a26da7b4520b62823c Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 5 Jan 2020 19:52:13 +0100 Subject: [PATCH 1/7] page/post variable --- source/docs/variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/docs/variables.md b/source/docs/variables.md index e74edf1b4f..e9f378898b 100644 --- a/source/docs/variables.md +++ b/source/docs/variables.md @@ -54,9 +54,9 @@ Variable | Description | Type Variable | Description | Type --- | --- | --- -`page.published` | True if the post is not a draft | `boolean` -`page.categories` | All categories of the post | `array` of ??? -`page.tags` | All tags of the post | `array` of ??? +`post.published` | True if the post is not a draft | `boolean` +`post.categories` | All categories of the post | `array` of ??? +`post.tags` | All tags of the post | `array` of ??? **Home (`index`)** From bea79c61eb595af0556fcb57d373a7bd85047641 Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 5 Jan 2020 19:58:30 +0100 Subject: [PATCH 2/7] ko: post --- source/ko/docs/variables.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/ko/docs/variables.md b/source/ko/docs/variables.md index e221b0f63f..710859eec5 100644 --- a/source/ko/docs/variables.md +++ b/source/ko/docs/variables.md @@ -51,9 +51,9 @@ title: Variables 변수 | 설명 --- | --- -`page.published` | Post가 draft상태가 아니라면 true를 반환합니다. -`page.categories` | Post의 모든 카테고리 -`page.tags` | Post의 모든 태그 +`post.published` | Post가 draft상태가 아니라면 true를 반환합니다. +`post.categories` | Post의 모든 카테고리 +`post.tags` | Post의 모든 태그 **Home (index)** @@ -74,7 +74,7 @@ title: Variables 변수 | 설명 --- | --- -`page.archive` | `true`와 동일합니다. +`page.published` | `true`와 동일합니다. `page.year` | 아카이브 연도 (4자리 숫자) `page.month` | 아카이브 월 (0을 제외한 2자리 숫자) From 25d9dcfc1c6473e5b060fefea18537b8b6f065f4 Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 5 Jan 2020 19:59:09 +0100 Subject: [PATCH 3/7] pt-br: post --- source/pt-br/docs/variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/pt-br/docs/variables.md b/source/pt-br/docs/variables.md index 37cee9d272..975c3e8857 100644 --- a/source/pt-br/docs/variables.md +++ b/source/pt-br/docs/variables.md @@ -54,9 +54,9 @@ Variável | Descrição | Tipo Variável | Descrição | Tipo --- | --- | --- -`page.published` | Verdadeiro se a postagem não for um rascunho | `boolean` -`page.categories` | Todas as categorias da postagem | `array` de ??? -`page.tags` | Todas as tags da postagem | `array` de ??? +`post.published` | Verdadeiro se a postagem não for um rascunho | `boolean` +`post.categories` | Todas as categorias da postagem | `array` de ??? +`post.tags` | Todas as tags da postagem | `array` de ??? **Home (`index`)** From 55019d23ab4194b40ba7fff7803b76e5d643a73d Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 5 Jan 2020 19:59:47 +0100 Subject: [PATCH 4/7] ru: post --- source/ru/docs/variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ru/docs/variables.md b/source/ru/docs/variables.md index 33842b9d23..3eedca8a25 100644 --- a/source/ru/docs/variables.md +++ b/source/ru/docs/variables.md @@ -51,9 +51,9 @@ title: Переменные Переменные | Описание --- | --- -`page.published` | `true`, если пост не проект -`page.categories` | Все категории поста -`page.tags` | Все теги поста +`post.published` | `true`, если пост не проект +`post.categories` | Все категории поста +`post.tags` | Все теги поста **Главная страница (index)** From 6489d9f9d7b38817011117490cd532cdaba0e117 Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 5 Jan 2020 20:00:16 +0100 Subject: [PATCH 5/7] th: post --- source/th/docs/variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/th/docs/variables.md b/source/th/docs/variables.md index fd115da21e..a17fde9531 100644 --- a/source/th/docs/variables.md +++ b/source/th/docs/variables.md @@ -54,9 +54,9 @@ Variable | Description | Type Variable | Description | Type --- | --- | --- -`page.published` | True if the post is not a draft | `boolean` -`page.categories` | All categories of the post | `array` of ??? -`page.tags` | All tags of the post | `array` of ??? +`post.published` | True if the post is not a draft | `boolean` +`post.categories` | All categories of the post | `array` of ??? +`post.tags` | All tags of the post | `array` of ??? **หน้าหลัก (`index`)** From e54e267e8ebff7da3d319d1567ff9975dffc84f9 Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 5 Jan 2020 20:00:50 +0100 Subject: [PATCH 6/7] zh-cn: post --- source/zh-cn/docs/variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/zh-cn/docs/variables.md b/source/zh-cn/docs/variables.md index 37a23070a3..bcdfabb4a9 100644 --- a/source/zh-cn/docs/variables.md +++ b/source/zh-cn/docs/variables.md @@ -51,9 +51,9 @@ title: 变量 变量 | 描述 | 类型 --- | --- | --- -`page.published` | 如果该文章已发布则为 true | `boolean` -`page.categories` | 该文章的所有分类 | `array` of ??? -`page.tags` | 该文章的所有标签 | `array` of ??? +`post.published` | 如果该文章已发布则为 true | `boolean` +`post.categories` | 该文章的所有分类 | `array` of ??? +`post.tags` | 该文章的所有标签 | `array` of ??? **首页(`index`)** From 787c1a71591829f28c4178568a03ac91d0d12bec Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 5 Jan 2020 20:03:22 +0100 Subject: [PATCH 7/7] zh-tw: post --- source/zh-tw/docs/variables.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/zh-tw/docs/variables.md b/source/zh-tw/docs/variables.md index 504a276013..0f3dcfd4d2 100644 --- a/source/zh-tw/docs/variables.md +++ b/source/zh-tw/docs/variables.md @@ -49,6 +49,14 @@ title: 變數 `page.photos` | 文章的照片(用於相簿) `page.link` | 文章的外連連結(用於連結文章) +**Post (`post`):** Same as `page` layout but add the following variables. + +Variable | Description | Type +--- | --- | --- +`post.published` | True if the post is not a draft | `boolean` +`post.categories` | All categories of the post | `array` of ??? +`post.tags` | All tags of the post | `array` of ??? + **首頁(index)** 變數 | 描述 @@ -85,4 +93,4 @@ title: 變數 `tag` | 標籤名稱 [Lodash]: http://lodash.com/ -[Moment.js]: http://momentjs.com/ \ No newline at end of file +[Moment.js]: http://momentjs.com/