From 63015faf52335904ecd9bb4fed6c88991866a7ed Mon Sep 17 00:00:00 2001 From: Sean Stewart Date: Sun, 28 Feb 2021 16:40:01 -0500 Subject: [PATCH] Add `extracopyright` block to footer.html --- .gitignore | 2 ++ docs/customization.md | 41 ++++++++++++++++++----------------- material/partials/footer.html | 1 + src/partials/footer.html | 1 + 4 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 76fd1a1ad..eec992f8c 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ /node_modules /__pycache__ /venv +/.venv # Build files /build @@ -62,3 +63,4 @@ tmp # IDEs .vscode +.idea diff --git a/docs/customization.md b/docs/customization.md index 6f6098f9b..42d1dd4ee 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -178,26 +178,27 @@ Then, e.g. to override the site title, add the following line to `main.html`: Material for MkDocs provides the following template blocks: -| Block name | Wrapped contents | -| ------------ | ----------------------------------------------- | -| `analytics` | Wraps the Google Analytics integration | -| `announce` | Wraps the announcement bar | -| `config` | Wraps the JavaScript application config | -| `content` | Wraps the main content | -| `disqus` | Wraps the Disqus integration | -| `extrahead` | Empty block to add custom meta tags | -| `fonts` | Wraps the font definitions | -| `footer` | Wraps the footer with navigation and copyright | -| `header` | Wraps the fixed header bar | -| `hero` | Wraps the hero teaser (if available) | -| `htmltitle` | Wraps the `` tag | -| `libs` | Wraps the JavaScript libraries (header) | -| `scripts` | Wraps the JavaScript application (footer) | -| `source` | Wraps the linked source files | -| `site_meta` | Wraps the meta tags in the document head | -| `site_nav` | Wraps the site navigation and table of contents | -| `styles` | Wraps the stylesheets (also extra sources) | -| `tabs` | Wraps the tabs navigation (if available) | +| Block name | Wrapped contents | +|:------------------|:------------------------------------------------| +| `analytics` | Wraps the Google Analytics integration | +| `announce` | Wraps the announcement bar | +| `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 | +| `header` | Wraps the fixed header bar | +| `hero` | Wraps the hero teaser (if available) | +| `htmltitle` | Wraps the `<title>` tag | +| `libs` | Wraps the JavaScript libraries (header) | +| `scripts` | Wraps the JavaScript application (footer) | +| `source` | Wraps the linked source files | +| `site_meta` | Wraps the meta tags in the document head | +| `site_nav` | Wraps the site navigation and table of contents | +| `styles` | Wraps the stylesheets (also extra sources) | +| `tabs` | Wraps the tabs navigation (if available) | For more on this topic refer to the [MkDocs documentation][5]. diff --git a/material/partials/footer.html b/material/partials/footer.html index 67b5fe63a..66e6496c7 100644 --- a/material/partials/footer.html +++ b/material/partials/footer.html @@ -49,6 +49,7 @@ <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener"> Material for MkDocs </a> + {% block extracopyright %}{% endblock %} </div> {% include "partials/social.html" %} </div> diff --git a/src/partials/footer.html b/src/partials/footer.html index dbcbace27..276e04efe 100644 --- a/src/partials/footer.html +++ b/src/partials/footer.html @@ -94,6 +94,7 @@ > Material for MkDocs </a> + {% block extracopyright %}{% endblock %} </div> <!-- Social links -->