Merge pull request #115 from britny/develop

added placeholder in context for latest post plugin
This commit is contained in:
Iacopo Spalletti 2015-06-15 17:38:57 +02:00
commit 0bc35f5a6a

View file

@ -30,6 +30,7 @@ class BlogLatestEntriesPlugin(BlogPlugin):
context['instance'] = instance
context['posts_list'] = instance.get_posts(context['request'])
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
context['placeholder'] = placeholder
return context
@ -47,6 +48,7 @@ class BlogLatestEntriesPluginCached(BlogPlugin):
context['instance'] = instance
context['posts_list'] = instance.get_posts()
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
context['placeholder'] = placeholder
return context