1
0
Fork 0
forked from github/pelican

Fix some typos and grammar

This commit is contained in:
Dafydd Crosby 2012-04-07 18:02:40 -06:00
commit 28a1e0f432
4 changed files with 9 additions and 8 deletions

View file

@ -63,7 +63,7 @@ class Page(object):
self.in_default_lang = (self.lang == default_lang)
# create the slug if not existing, fro mthe title
# create the slug if not existing, from the title
if not hasattr(self, 'slug') and hasattr(self, 'title'):
self.slug = slugify(self.title)
@ -135,7 +135,7 @@ class Page(object):
def _get_summary(self):
"""Returns the summary of an article, based on the summary metadata
if it is set, else troncate the content."""
if it is set, else truncate the content."""
if hasattr(self, '_summary'):
return self._summary
else: