mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03: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:
parent
e72af03cd1
commit
b3c0163b3b
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user