close
Warning:
Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.
- Timestamp:
-
2021-07-11T14:17:48-07:00 (3 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
56 | 56 | == Site Appearance |
57 | 57 | |
58 | | Trac is using [http://jinja.pocoo.org/ Jinja2] as the templating engine. |
| 58 | Trac is using [http://jinja.pocoo.org/ Jinja2] as the templating engine. |
59 | 59 | |
60 | 60 | We have put in place a number of "placeholder" in the form of "include" directives. These files don't need to exist, but if they do, their content will be processed by Jinja2 as well. As such, they can make use of other "include" directives, or any other feature of Jinja2 to generate dynamic content. |
… |
… |
|
63 | 63 | - `site_head.html`, which can be used to add content inside the generated `<head>` element |
64 | 64 | - `site_header.html`, which can be used to **prepend** content inside the generated `<body>` element, before the standard content generated by Trac |
65 | | - `site_header.html`, which can be used to **append** content inside the generated `<body>` element, after the standard content generated by Trac |
| 65 | - `site_footer.html`, which can be used to **append** content inside the generated `<body>` element, after the standard content generated by Trac |
66 | 66 | |
67 | 67 | Say you want to add a link to a custom stylesheet, and then your own header and footer. Save the following content as `site_head.html`, `site_header.html` and `site_footer.html` inside your projects `templates/` directory (each Trac project can have their own "placeholder" files) e.g. `/path/to/env/templates/site_head.html`: |