forked from github/pelican
remove hardcoded values for SUMMARY_BEGIN_MARKER and SUMMARY_END_MARKER
This commit is contained in:
parent
ed907b4094
commit
d68d2debf9
1 changed files with 0 additions and 2 deletions
|
|
@ -30,8 +30,6 @@ def content_object_init(instance):
|
|||
prev_get_content = instance.get_content
|
||||
def get_content(self, siteurl):
|
||||
content = prev_get_content(siteurl)
|
||||
self.settings['SUMMARY_BEGIN_MARKER'] = '<!-- PELICAN_BEGIN_SUMMARY -->'
|
||||
self.settings['SUMMARY_END_MARKER'] = '<!-- PELICAN_END_SUMMARY -->'
|
||||
if self.settings['SUMMARY_BEGIN_MARKER']:
|
||||
content = content.replace(
|
||||
self.settings['SUMMARY_BEGIN_MARKER'], '', 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue