doc(content/page): fix typo (#1419)
This commit is contained in:
parent
1f75738977
commit
a9afb076b4
|
@ -13,7 +13,7 @@ were named `_index.md`, then it would create a **section** at `[base_url]/about`
|
||||||
discussed in a previous part of this documentation. In contrast, naming the file `index.md` will
|
discussed in a previous part of this documentation. In contrast, naming the file `index.md` will
|
||||||
create a **page** at `[base_url]/about`).
|
create a **page** at `[base_url]/about`).
|
||||||
|
|
||||||
If the file is given any name *other* than `index.md` or `_index.md`, then it will
|
If the file is given any name _other_ than `index.md` or `_index.md`, then it will
|
||||||
create a page with that name (without the `.md`). For example, naming a file in the root of your
|
create a page with that name (without the `.md`). For example, naming a file in the root of your
|
||||||
content directory `about.md` would create a page at `[base_url]/about`.
|
content directory `about.md` would create a page at `[base_url]/about`.
|
||||||
Another exception to this rule is that a filename starting with a datetime (YYYY-mm-dd or [an RFC3339 datetime](https://www.ietf.org/rfc/rfc3339.txt)) followed by
|
Another exception to this rule is that a filename starting with a datetime (YYYY-mm-dd or [an RFC3339 datetime](https://www.ietf.org/rfc/rfc3339.txt)) followed by
|
||||||
|
@ -62,6 +62,7 @@ This frontmatter will output the article to `[base_url]/zines/femmes-libres-lib
|
||||||
### Path from filename
|
### Path from filename
|
||||||
|
|
||||||
When the article's output path is not specified in the frontmatter, it is extracted from the file's path in the content folder. Consider a file `content/foo/bar/thing.md`. The output path is constructed:
|
When the article's output path is not specified in the frontmatter, it is extracted from the file's path in the content folder. Consider a file `content/foo/bar/thing.md`. The output path is constructed:
|
||||||
|
|
||||||
- if the filename is `index.md`, its parent folder name (`bar`) is used as output path
|
- if the filename is `index.md`, its parent folder name (`bar`) is used as output path
|
||||||
- otherwise, the output path is extracted from `thing` (the filename without the `.md` extension)
|
- otherwise, the output path is extracted from `thing` (the filename without the `.md` extension)
|
||||||
|
|
||||||
|
@ -109,7 +110,7 @@ weight = 0
|
||||||
# A draft page is only loaded if the `--drafts` flag is passed to `zola build`, `zola serve` or `zola check`.
|
# A draft page is only loaded if the `--drafts` flag is passed to `zola build`, `zola serve` or `zola check`.
|
||||||
draft = false
|
draft = false
|
||||||
|
|
||||||
# If set, this slug will be instead of the filename to make the URL.
|
# If set, this slug will be used instead of the filename to make the URL.
|
||||||
# The section path will still be used.
|
# The section path will still be used.
|
||||||
slug = ""
|
slug = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue