Skip to content

Commit

Permalink
docs: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Dec 27, 2023
1 parent be012d2 commit 7ecb3fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/3-Templates.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
description: "Working with layouts and templates."
date: 2021-05-07
updated: 2023-12-11
updated: 2023-12-27
alias: documentation/layouts
-->
# Templates
Expand Down Expand Up @@ -186,8 +186,8 @@ Can be displayed in a template with:
| `site.time` | [_Timestamp_](https://wikipedia.org/wiki/Unix_time) of the last generation. |
| `site.debug` | Debug mode: `true` or `false`. |

:::info
In some case you can encounter conflicts between configuration and built-in variables (e.g.: `pages.default` configuration), so you can use `config.xxxx` (with `xxxx` is the variable name) to access directly to the raw configuration).
:::important
In some case you can encounter conflicts between configuration and built-in variables (e.g.: `pages.default` configuration), so you can use `config.<variable>` (with `<variable>` is the name/path of the variable) to access directly to the raw configuration).

Example:

Expand Down
4 changes: 2 additions & 2 deletions docs/4-Configuration.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
description: "Configure your website."
date: 2021-05-07
updated: 2023-12-20
updated: 2023-12-27
-->
# Configuration

Expand Down Expand Up @@ -514,7 +514,7 @@ output:
subpath: <sub path> # sub path, e.g.: `amp` in `path/amp/index.html` (optional)
filename: <file name> # file name, e.g.: `index` in `path/index.html` (optional)
extension: <extension> # file extension, e.g.: `html` in `path/index.html` (required)
exclude: [<variable>] # don’t apply this format to pages identified by listed variables, e.g.: `[redirect]` (optional)
exclude: [<variable>] # don’t apply this format to pages identified by listed variables, e.g.: `[redirect, paginated]` (optional)
```
Those formats are used by `pagetypeformats` (see below) and by the [`output` page’s variable](2-Content.md#output).
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function getTime(): int
}

/**
* Returns the property value of an output format.
* Returns the property value(s) of an output format.
*/
public function getOutputProperty(string $name, string $property): string|array|null
{
Expand Down

0 comments on commit 7ecb3fd

Please sign in to comment.