mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix intrasite links substitions in content
The Content.__eq__ method would indirectly call _update_content too
soon, resulting in failed intrasite links substitution
This effectively reverts fd77926700
for pelican/contents.py, it was unnecessary anyways.
Thanks to Strom for finding this.
This commit is contained in:
parent
cd40105c40
commit
9a753f4fa9
1 changed files with 0 additions and 7 deletions
|
|
@ -325,13 +325,6 @@ class Content(object):
|
|||
os.path.abspath(self.settings['PATH']))
|
||||
)
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Compare with metadata and content of other Content object"""
|
||||
return other and self.metadata == other.metadata and self.content == other.content
|
||||
|
||||
# keep basic hashing functionality for caching to work
|
||||
__hash__ = object.__hash__
|
||||
|
||||
|
||||
class Page(Content):
|
||||
mandatory_properties = ('title',)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue