kopia lustrzana https://github.com/wagtail/wagtail
Renamed get_medusa_paths to get_staticsite_paths
rodzic
f4040a648d
commit
b5d4c0e78a
|
|
@ -12,7 +12,7 @@ class PageRenderer(StaticSiteRenderer):
|
|||
return []
|
||||
|
||||
# Return list of paths
|
||||
return site.root_page.get_medusa_paths()
|
||||
return site.root_page.get_staticsite_paths()
|
||||
|
||||
|
||||
class DocumentRenderer(StaticSiteRenderer):
|
||||
|
|
|
|||
|
|
@ -622,9 +622,9 @@ class Page(MP_Node, ClusterableModel, Indexed):
|
|||
"""
|
||||
return self.serve(self.dummy_request())
|
||||
|
||||
def get_medusa_paths(self):
|
||||
def get_staticsite_paths(self):
|
||||
"""
|
||||
This is a generator of URL paths to feed into django-medusa
|
||||
This is a generator of URL paths to feed into a static site generator
|
||||
Override this if you would like to create static versions of subpages
|
||||
"""
|
||||
# Yield paths for this page
|
||||
|
|
@ -632,7 +632,7 @@ class Page(MP_Node, ClusterableModel, Indexed):
|
|||
|
||||
# Yield paths for child pages
|
||||
for child in self.get_children().live():
|
||||
for path in child.specific.get_medusa_paths():
|
||||
for path in child.specific.get_staticsite_paths():
|
||||
yield '/' + child.slug + path
|
||||
|
||||
def get_ancestors(self, inclusive=False):
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue