kopia lustrzana https://github.com/wagtail/wagtail
Fix misleading wording - clarify that get_site_root is created, not used
rodzic
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:
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue