Skip to content

Commit

Permalink
docs: update Content pages
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Sep 9, 2022
1 parent 5f0b3a3 commit b04437c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions exampleSite/content/docs/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ mainSections = ["blog", "posts", "docs", "notes"]

Front Matter is the place where we put page metadata and parameters, such as title, date and so on.

### Formats

Hugo supports three formats of front matter: `YAML`, `TOML` and `JSON`.

- `TOML`: identified by opening and closing `+++`.
- `YAML`: identified by opening and closing `---`.
- `JSON`: a single JSON object surrounded by `{` and `}`, followed by a new line.

Let's take `TOML` as an example:

```toml
+++
title = 'Hello world!'
+++
```

See also [Page Parameters]({{< ref "docs/configuration/page-params" >}}) and [Hugo Front Matter](https://gohugo.io/content-management/front-matter).

## Content Types
Expand Down
16 changes: 16 additions & 0 deletions exampleSite/content/docs/content/index.zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ mainSections = ["blog", "posts", "docs", "notes"]

Front Matter is the place where we put page metadata and parameters, such as title, date and so on.

### Formats

Hugo supports three formats of front matter: `YAML`, `TOML` and `JSON`.

- `TOML`: identified by opening and closing `+++`.
- `YAML`: identified by opening and closing `---`.
- `JSON`: a single JSON object surrounded by `{` and `}`, followed by a new line.

Let's take `TOML` as an example:

```toml
+++
title = 'Hello world!'
+++
```

See also [Page Parameters]({{< ref "docs/configuration/page-params" >}}) and [Hugo Front Matter](https://gohugo.io/content-management/front-matter).

## 内容类型
Expand Down
16 changes: 16 additions & 0 deletions exampleSite/content/docs/content/index.zh-hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ mainSections = ["blog", "posts", "docs", "notes"]

Front Matter is the place where we put page metadata and parameters, such as title, date and so on.

### Formats

Hugo supports three formats of front matter: `YAML`, `TOML` and `JSON`.

- `TOML`: identified by opening and closing `+++`.
- `YAML`: identified by opening and closing `---`.
- `JSON`: a single JSON object surrounded by `{` and `}`, followed by a new line.

Let's take `TOML` as an example:

```toml
+++
title = 'Hello world!'
+++
```

See also [Page Parameters]({{< ref "docs/configuration/page-params" >}}) and [Hugo Front Matter](https://gohugo.io/content-management/front-matter).

## 內容類型
Expand Down

0 comments on commit b04437c

Please sign in to comment.