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 ``` 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 %}