Escape capture template commands (#9788)
This commit is contained in:
committed by
k8s-ci-robot
parent
6ac1441e25
commit
afafa01a90
@@ -10,7 +10,7 @@ When contributing new topics, apply one of the following templates to them.
|
|||||||
This standardizes the user experience of a given page.
|
This standardizes the user experience of a given page.
|
||||||
|
|
||||||
The page templates are in the
|
The page templates are in the
|
||||||
[`_includes/templates`](https://git.k8s.io/website/_includes/templates)
|
[`layouts/partials/templates`](https://git.k8s.io/website/layouts/partials/templates)
|
||||||
directory of the [`kubernetes/website`](https://github.com/kubernetes/website)
|
directory of the [`kubernetes/website`](https://github.com/kubernetes/website)
|
||||||
repository.
|
repository.
|
||||||
|
|
||||||
@@ -20,6 +20,7 @@ template to use for a new topic, start with the
|
|||||||
[concept template](#concept-template).
|
[concept template](#concept-template).
|
||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
|
|
||||||
|
|
||||||
{{% /capture %}}
|
{{% /capture %}}
|
||||||
|
|
||||||
{{< toc >}}
|
{{< toc >}}
|
||||||
@@ -43,7 +44,7 @@ To write a new concept page, create a Markdown file in a subdirectory of the
|
|||||||
ones you want to include:
|
ones you want to include:
|
||||||
|
|
||||||
| Variable | Required? |
|
| Variable | Required? |
|
||||||
|===============|===========|
|
|---------------|-----------|
|
||||||
| overview | yes |
|
| overview | yes |
|
||||||
| body | yes |
|
| body | yes |
|
||||||
| whatsnext | no |
|
| whatsnext | no |
|
||||||
@@ -52,20 +53,22 @@ To write a new concept page, create a Markdown file in a subdirectory of the
|
|||||||
need):
|
need):
|
||||||
|
|
||||||
```
|
```
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{{% capture overview %}}
|
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture overview */%}}
|
||||||
|
|
||||||
{{< toc >}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% capture body %}}
|
{{</* toc */>}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture body */%}}
|
||||||
|
|
||||||
{{% capture whatsnext %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
|
{{%/* capture whatsnext */%}}
|
||||||
|
|
||||||
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -96,7 +99,7 @@ To write a new task page, create a Markdown file in a subdirectory of the
|
|||||||
ones you want to include:
|
ones you want to include:
|
||||||
|
|
||||||
| Variable | Required? |
|
| Variable | Required? |
|
||||||
|===============|===========|
|
|---------------|-----------|
|
||||||
| overview | yes |
|
| overview | yes |
|
||||||
| prerequisites | yes |
|
| prerequisites | yes |
|
||||||
| steps | no |
|
| steps | no |
|
||||||
@@ -108,29 +111,31 @@ To write a new task page, create a Markdown file in a subdirectory of the
|
|||||||
|
|
||||||
```
|
```
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{{% capture overview %}}
|
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture overview */%}}
|
||||||
|
|
||||||
{{< toc >}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% capture prerequisites %}}
|
{{</* toc */>}}
|
||||||
|
|
||||||
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
|
{{%/* capture prerequisites */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{</* include "task-tutorial-prereqs.md" */>}} {{</* version-check */>}}
|
||||||
|
|
||||||
{{% capture steps %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture steps */%}}
|
||||||
|
|
||||||
{{% capture discussion %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture discussion */%}}
|
||||||
|
|
||||||
{{% capture whatsnext %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
|
{{%/* capture whatsnext */%}}
|
||||||
|
|
||||||
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -167,7 +172,7 @@ To write a new tutorial page, create a Markdown file in a subdirectory of the
|
|||||||
ones you want to include:
|
ones you want to include:
|
||||||
|
|
||||||
| Variable | Required? |
|
| Variable | Required? |
|
||||||
|===============|===========|
|
|---------------|-----------|
|
||||||
| overview | yes |
|
| overview | yes |
|
||||||
| prerequisites | yes |
|
| prerequisites | yes |
|
||||||
| objectives | yes |
|
| objectives | yes |
|
||||||
@@ -180,33 +185,34 @@ To write a new tutorial page, create a Markdown file in a subdirectory of the
|
|||||||
|
|
||||||
```
|
```
|
||||||
{% raw %}
|
{% raw %}
|
||||||
{{% capture overview %}}
|
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture overview */%}}
|
||||||
|
|
||||||
{{< toc >}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% capture prerequisites %}}
|
{{</* toc */>}}
|
||||||
|
|
||||||
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
|
{{%/* capture prerequisites */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{</* include "task-tutorial-prereqs.md" */>}} {{</* version-check */>}}
|
||||||
|
|
||||||
{{% capture objectives %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture objectives */%}}
|
||||||
|
|
||||||
{{% capture lessoncontent %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture lessoncontent */%}}
|
||||||
|
|
||||||
{{% capture cleanup %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture cleanup */%}}
|
||||||
|
|
||||||
{{% capture whatsnext %}}
|
{{%/* /capture */%}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{%/* capture whatsnext */%}}
|
||||||
|
|
||||||
|
{{%/* /capture */%}}
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user