mirror of
https://github.com/getzola/zola
synced 2024-12-13 13:52:28 +00:00
doc(content/page): fix typo (#1419)
This commit is contained in:
parent
1f75738977
commit
a9afb076b4
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
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
|
||||
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
|
||||
|
@ -62,6 +62,7 @@ This frontmatter will output the article to `[base_url]/zines/femmes-libres-lib
|
|||
### 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:
|
||||
|
||||
- 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)
|
||||
|
||||
|
@ -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`.
|
||||
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.
|
||||
slug = ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue