forked from github/pelican
Added support for the summary end marker configuration
This commit is contained in:
parent
a9a651ce4d
commit
e412657581
2 changed files with 3 additions and 1 deletions
|
|
@ -390,7 +390,8 @@ class Content(object):
|
|||
return self.content
|
||||
|
||||
return truncate_html_words(self.content,
|
||||
self.settings['SUMMARY_MAX_LENGTH'])
|
||||
self.settings['SUMMARY_MAX_LENGTH'],
|
||||
self.settings['SUMMARY_END_MARKER'])
|
||||
|
||||
@property
|
||||
def summary(self):
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ DEFAULT_CONFIG = {
|
|||
'ARTICLE_PERMALINK_STRUCTURE': '',
|
||||
'TYPOGRIFY': False,
|
||||
'TYPOGRIFY_IGNORE_TAGS': [],
|
||||
'SUMMARY_END_MARKER': '…',
|
||||
'SUMMARY_MAX_LENGTH': 50,
|
||||
'PLUGIN_PATHS': [],
|
||||
'PLUGINS': None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue