mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
use 'summary' rather than ':summary:' in comments
This commit is contained in:
parent
4714276e2c
commit
c75ab513da
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ class Page(object):
|
||||||
if hasattr(self, 'date') and self.date > datetime.now():
|
if hasattr(self, 'date') and self.date > datetime.now():
|
||||||
self.status = 'draft'
|
self.status = 'draft'
|
||||||
|
|
||||||
# store the :summary: metadata if it is set
|
# store the summary metadata if it is set
|
||||||
if 'summary' in metadata:
|
if 'summary' in metadata:
|
||||||
self._summary = metadata['summary']
|
self._summary = metadata['summary']
|
||||||
|
|
||||||
|
|
@ -126,7 +126,7 @@ class Page(object):
|
||||||
return content
|
return content
|
||||||
|
|
||||||
def _get_summary(self):
|
def _get_summary(self):
|
||||||
"""Returns the summary of an article, based on the :summary: metadata
|
"""Returns the summary of an article, based on the summary metadata
|
||||||
if it is set, else troncate the content."""
|
if it is set, else troncate the content."""
|
||||||
if hasattr(self, '_summary'):
|
if hasattr(self, '_summary'):
|
||||||
return self._summary
|
return self._summary
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue