forked from github/pelican
Get Content._summary from metadata
This commit is contained in:
parent
65daa9e537
commit
06fd9be1c2
1 changed files with 2 additions and 2 deletions
|
|
@ -337,8 +337,8 @@ class Content(object):
|
|||
This is based on the summary metadata if set, otherwise truncate the
|
||||
content.
|
||||
"""
|
||||
if hasattr(self, '_summary'):
|
||||
return self._update_content(self._summary, siteurl)
|
||||
if 'summary' in self.metadata:
|
||||
return self.metadata['summary']
|
||||
|
||||
if self.settings['SUMMARY_MAX_LENGTH'] is None:
|
||||
return self.content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue