mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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
|
This is based on the summary metadata if set, otherwise truncate the
|
||||||
content.
|
content.
|
||||||
"""
|
"""
|
||||||
if hasattr(self, '_summary'):
|
if 'summary' in self.metadata:
|
||||||
return self._update_content(self._summary, siteurl)
|
return self.metadata['summary']
|
||||||
|
|
||||||
if self.settings['SUMMARY_MAX_LENGTH'] is None:
|
if self.settings['SUMMARY_MAX_LENGTH'] is None:
|
||||||
return self.content
|
return self.content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue