Merge pull request #115 from britny/develop
added placeholder in context for latest post plugin
This commit is contained in:
commit
0bc35f5a6a
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@ class BlogLatestEntriesPlugin(BlogPlugin):
|
||||||
context['instance'] = instance
|
context['instance'] = instance
|
||||||
context['posts_list'] = instance.get_posts(context['request'])
|
context['posts_list'] = instance.get_posts(context['request'])
|
||||||
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
||||||
|
context['placeholder'] = placeholder
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,6 +48,7 @@ class BlogLatestEntriesPluginCached(BlogPlugin):
|
||||||
context['instance'] = instance
|
context['instance'] = instance
|
||||||
context['posts_list'] = instance.get_posts()
|
context['posts_list'] = instance.get_posts()
|
||||||
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
||||||
|
context['placeholder'] = placeholder
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue