Add extracopyright block to footer.html

This commit is contained in:
Sean Stewart 2021-02-28 16:40:01 -05:00
parent 500d5e6f74
commit 63015faf52
4 changed files with 25 additions and 20 deletions

2
.gitignore vendored
View File

@ -26,6 +26,7 @@
/node_modules /node_modules
/__pycache__ /__pycache__
/venv /venv
/.venv
# Build files # Build files
/build /build
@ -62,3 +63,4 @@ tmp
# IDEs # IDEs
.vscode .vscode
.idea

View File

@ -179,12 +179,13 @@ Then, e.g. to override the site title, add the following line to `main.html`:
Material for MkDocs provides the following template blocks: Material for MkDocs provides the following template blocks:
| Block name | Wrapped contents | | Block name | Wrapped contents |
| ------------ | ----------------------------------------------- | |:------------------|:------------------------------------------------|
| `analytics` | Wraps the Google Analytics integration | | `analytics` | Wraps the Google Analytics integration |
| `announce` | Wraps the announcement bar | | `announce` | Wraps the announcement bar |
| `config` | Wraps the JavaScript application config | | `config` | Wraps the JavaScript application config |
| `content` | Wraps the main content | | `content` | Wraps the main content |
| `disqus` | Wraps the Disqus integration | | `disqus` | Wraps the Disqus integration |
| `extracopyright` | Empty block to add custom copyright information |
| `extrahead` | Empty block to add custom meta tags | | `extrahead` | Empty block to add custom meta tags |
| `fonts` | Wraps the font definitions | | `fonts` | Wraps the font definitions |
| `footer` | Wraps the footer with navigation and copyright | | `footer` | Wraps the footer with navigation and copyright |

View File

@ -49,6 +49,7 @@
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener"> <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs Material for MkDocs
</a> </a>
{% block extracopyright %}{% endblock %}
</div> </div>
{% include "partials/social.html" %} {% include "partials/social.html" %}
</div> </div>

View File

@ -94,6 +94,7 @@
> >
Material for MkDocs Material for MkDocs
</a> </a>
{% block extracopyright %}{% endblock %}
</div> </div>
<!-- Social links --> <!-- Social links -->