Skip to content

Commit a6d4b24

Browse files
committed
Update README.md to clarify additional placeholder for error codes
1 parent e929ee3 commit a6d4b24

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ The placeholders used are:
2020
- `/**ERROR_JS**/`: Any JavaScript code to be included in the error page. Inserted from `js`.
2121
- `/**ERROR_CSS**/`: Any CSS styles to be included in the error page . Inserted from `css`.
2222

23+
For `error` layout pages, an additional placeholder is used:
24+
25+
- `/**ERROR_CODE**/`: The error code for the error page (e.g., 404, 500). Replaced with the filename part of the content file.
26+
2327
The templating use multiple layouts, which are defined in the `layouts` folder.
2428
Each content file in the `contents` folder should be prefixed with the layout name, followed by an underscore.
2529
For example, a content file named `error_404.html` will use the `error` layout, and produce a page named `404.html`.

0 commit comments

Comments
 (0)