Clarify example code isn't entire file
This commit is contained in:
@@ -290,7 +290,7 @@ An optional menu can be configured.
|
|||||||
The active menu item has a URL that is a prefix of the path of the current page.
|
The active menu item has a URL that is a prefix of the path of the current page.
|
||||||
A menu item with the URL `/` only matches a `/` path.
|
A menu item with the URL `/` only matches a `/` path.
|
||||||
|
|
||||||
Example `yoursite/config.toml`:
|
Example configuration in `yoursite/config.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[languages.en]
|
[languages.en]
|
||||||
@@ -327,7 +327,7 @@ weight = 40
|
|||||||
|
|
||||||
The `paige/cloud` layout provides a link cloud for sub-pages.
|
The `paige/cloud` layout provides a link cloud for sub-pages.
|
||||||
|
|
||||||
Example `yoursite/content/tags/_index.md`:
|
Example configuration in `yoursite/content/tags/_index.md`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
layout = "paige/cloud"
|
layout = "paige/cloud"
|
||||||
@@ -337,14 +337,14 @@ layout = "paige/cloud"
|
|||||||
|
|
||||||
The `paige/search` layout provides a search page.
|
The `paige/search` layout provides a search page.
|
||||||
|
|
||||||
Example `yoursite/config.toml`:
|
Example configuration in `yoursite/config.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["html", "json", "rss"]
|
home = ["html", "json", "rss"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Example `yoursite/content/search.md`:
|
Example configuration in `yoursite/content/search.md`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
layout = "paige/search"
|
layout = "paige/search"
|
||||||
|
Reference in New Issue
Block a user