summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(GalaxyMaster) <galaxy4public@users.noreply.github.com>2020-04-11 15:35:26 +1000
committer(GalaxyMaster) <galaxy4public@users.noreply.github.com>2020-04-11 15:35:26 +1000
commite412657581c060a117f178d1224a4bce53bbae26 (patch)
tree6cc115f4fa5e3df44f57263a2c04d8c7a73c3aba
parenta9a651ce4d58f8fe6119e43a9a8383a1ea7b240f (diff)
downloadpelican-e412657581c060a117f178d1224a4bce53bbae26.tar.gz
Added support for the summary end marker configuration
-rw-r--r--pelican/contents.py3
-rw-r--r--pelican/settings.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/pelican/contents.py b/pelican/contents.py
index 594cd3b5..620fa304 100644
--- a/pelican/contents.py
+++ b/pelican/contents.py
@@ -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):
diff --git a/pelican/settings.py b/pelican/settings.py
index 0cdcefc7..7d80ba90 100644
--- a/pelican/settings.py
+++ b/pelican/settings.py
@@ -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,