0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 01:57:32 +01:00

Fix misleading wording - clarify that get_site_root is created, not used

This commit is contained in:
Clifford Gama 2024-11-16 08:27:23 +02:00 committed by Matt Westcott
parent 791f031e16
commit ed084ae3bd

View File

@ -21,7 +21,7 @@ def get_site_root(context):
return Site.find_for_request(context["request"]).root_page
```
In the preceding code, you used the `get_site_root` template tag to retrieve the root page of your site, which is your `HomePage` in this case.
In the preceding code, you created the `get_site_root` template tag to retrieve the root page of your site, which is your `HomePage` in this case.
Now, create `mysite/templates/includes/header.html` file and add the following to it: