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
|
``` markdown
|
||||||
---
|
---
|
||||||
template: overrides/hero.html
|
template: hero.html
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Template"
|
=== "Template"
|
||||||
|
|
||||||
``` html
|
``` html
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block hero %}
|
{% block hero %}
|
||||||
<!-- Add custom hero here -->
|
<!-- Add custom hero here -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user