OLD | NEW |
1 # Pages # | 1 # Pages # |
2 | 2 |
3 The pages are defined in the `pages` directory. The file extension defines the | 3 The pages are defined in the `pages` directory. The file extension defines the |
4 format in which a page is specified and won't be visible on the web server. | 4 format in which a page is specified and won't be visible on the web server. |
5 The page name is prepended by the locale code in the URL, e.g. `pages/foo.md` | 5 The page name is prepended by the locale code in the URL, e.g. `pages/foo.md` |
6 can be available under the URLs `/en/foo` and `/de/foo` (the English and German | 6 can be available under the URLs `/en/foo` and `/de/foo` (the English and German |
7 versions respectively). Regardless of the format, a page can define a number of | 7 versions respectively). Regardless of the format, a page can define a number of |
8 settings using the following format: | 8 settings using the following format: |
9 | 9 |
10 setting = value | 10 setting = value |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 Complicated pages can be defined using the | 74 Complicated pages can be defined using the |
75 [Jinja2 template format](http://jinja.pocoo.org/docs/templates/). Automatic | 75 [Jinja2 template format](http://jinja.pocoo.org/docs/templates/). Automatic |
76 escaping is active so by default values inserted into the page cannot contain | 76 escaping is active so by default values inserted into the page cannot contain |
77 any HTML code. Any content between `<head>` and `</head>` tags will be inserted | 77 any HTML code. Any content between `<head>` and `</head>` tags will be inserted |
78 into the head of the generated web page, everything else defined the content of | 78 into the head of the generated web page, everything else defined the content of |
79 the page. | 79 the page. |
80 | 80 |
81 Read the API documentation on [variables](../api/variables.md), | 81 Read the API documentation on [variables](../api/variables.md), |
82 [global functions](../api/functions.md), and [custom filters](../api/filters.md)
| 82 [global functions](../api/functions.md), and [custom filters](../api/filters.md)
|
83 that can be used on pages. | 83 that can be used on pages. |
| 84 |
| 85 Prev: [Various include files (`includes`)](includes.md) | Up: [Home](../../READM
E.md) | Next: [Static content (`static`)](static.md) |
OLD | NEW |