1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Fixed example for hero deprecation (#2567)

- If  the `custom_dir` is `overrides` (as specified  in the documentation) it shouldn't be specified in the template path
- `{% extends "base.html" %}` is needed in the template
This commit is contained in:
Julien Richard 2021-04-15 09:30:06 +02:00 committed by GitHub
parent e72af03cd1
commit b3c0163b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,13 +98,15 @@ templates can be shared among multiple pages:
``` markdown
---
template: overrides/hero.html
template: hero.html
---
```
=== "Template"
``` html
{% extends "base.html" %}
{% block hero %}
<!-- Add custom hero here -->
{% endblock %}