Updated customization.md - extracopyright (#2510)

Remove extracopyright from template block and add a paragraph to explain how to set a variable instead
This commit is contained in:
EdouardThiel 2021-04-10 11:01:45 +02:00 committed by GitHub
parent 599fdf9c5f
commit fd856ed712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,6 @@ Material for MkDocs provides the following template blocks:
| `config` | Wraps the JavaScript application config |
| `content` | Wraps the main content |
| `disqus` | Wraps the Disqus integration |
| `extracopyright` | Empty block to add custom copyright information |
| `extrahead` | Empty block to add custom meta tags |
| `fonts` | Wraps the font definitions |
| `footer` | Wraps the footer with navigation and copyright |
@ -205,6 +204,17 @@ For more on this topic refer to the [MkDocs documentation][5].
[5]: https://www.mkdocs.org/user-guide/styling-your-docs/#overriding-template-blocks
Material for MkDocs provides also extra variables that can be set in `main.html`, e.g.
``` html
{% extends "base.html" %}
{% set extracopyright %}
an this other tool
{% endset %}
```
will add `an this other tool` next to the `Made with Material for Mkdocs` in the footer.
## Theme development
Material for MkDocs is built on top of [TypeScript][6], [RxJS][7] and [SASS][8],