mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
support inline summary specification
update documentation change summary cutoff to a plugin remove backup file fix 3.2 tests update summary plugin initialization and documentation update documentation fix documentation formatting
This commit is contained in:
parent
557f1cc956
commit
3f4406dd6b
5 changed files with 171 additions and 18 deletions
|
|
@ -201,11 +201,11 @@ class Page(object):
|
|||
if it is set, else truncate the content."""
|
||||
if hasattr(self, '_summary'):
|
||||
return self._summary
|
||||
else:
|
||||
if self.settings['SUMMARY_MAX_LENGTH']:
|
||||
return truncate_html_words(self.content,
|
||||
self.settings['SUMMARY_MAX_LENGTH'])
|
||||
return self.content
|
||||
|
||||
if self.settings['SUMMARY_MAX_LENGTH']:
|
||||
return truncate_html_words(self.content,
|
||||
self.settings['SUMMARY_MAX_LENGTH'])
|
||||
return self.content
|
||||
|
||||
def _set_summary(self, summary):
|
||||
"""Dummy function"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue