From b3c0163b3b6b6e4d2cb4d50fbd535018042c4970 Mon Sep 17 00:00:00 2001 From: Julien Richard Date: Thu, 15 Apr 2021 09:30:06 +0200 Subject: [PATCH] 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 --- docs/deprecations.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/deprecations.md b/docs/deprecations.md index 3f1b99043..b758cd2e8 100644 --- a/docs/deprecations.md +++ b/docs/deprecations.md @@ -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 %} {% endblock %}