8000 Updated customization.md - extracopyright (#2510) · squidfunk/mkdocs-material@fd856ed · GitHub
[go: up one dir, main page]

Skip to content

Commit fd856ed

Browse files
authored
Updated customization.md - extracopyright (#2510)
Remove extracopyright from template block and add a paragraph to explain how to set a variable instead
1 parent 599fdf9 commit fd856ed

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/customization.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ Material for MkDocs provides the following template blocks:
185185
| `config` | Wraps the JavaScript application config |
186186
| `content` | Wraps the main content |
187187
| `disqus` | Wraps the Disqus integration |
188-
| `extracopyright` | Empty block to add custom copyright information |
189188
| `extrahead` | Empty block to add custom meta tags |
190189
| `fonts` | Wraps the font definitions |
191190
| `footer` | Wraps the footer with navigation and copyright |
@@ -203,7 +202,18 @@ Material for MkDocs provides the following template blocks:
203202

204203
For more on this topic refer to the [MkDocs documentation][5].
205204

206-
[5]: https://www.mkdocs.org/user-guide/styling-your-docs/#overriding-template-blocks
205+
[5]: https://www.mkdocs.org/user-guide/styling-your-docs/#overriding-template-blocks
206+
207+
Material for MkDocs provides also extra variables that can be set in `main.html`, e.g.
208+
209+
``` html
210+
{% extends "base.html" %}
211+
212+
{% set extracopyright %}
213+
an this other tool
214+
{% endset %}
215+
```
216+
will add `an this other tool` next to the `Made with Material for Mkdocs` in the footer.
207217

208218
## Theme development
209219

0 commit comments

Comments
 (0)
0