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:
parent
791f031e16
commit
ed084ae3bd
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user