Renamed newsfeed to blogentries in home page
This commit is contained in:
parent
aa5215d603
commit
9bd87050f2
2 changed files with 3 additions and 3 deletions
|
@ -212,7 +212,7 @@ class HomePage(Page):
|
|||
return articles[:4]
|
||||
|
||||
@property
|
||||
def newsfeed(self):
|
||||
def blogentries(self):
|
||||
# Get list of latest news
|
||||
curlang = translation.get_language()
|
||||
if not curlang in ['de', 'fr']: curlang = 'de' # Default language
|
||||
|
@ -227,7 +227,7 @@ class HomePage(Page):
|
|||
# Update template context
|
||||
context = super(HomePage, self).get_context(request)
|
||||
context['featured'] = self.featured
|
||||
context['newsfeed'] = self.newsfeed
|
||||
context['blogentries'] = self.blogentries
|
||||
return context
|
||||
|
||||
parent_page_types = ['wagtailcore.Page']
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<section id="news">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{% for entry in newsfeed %}
|
||||
{% for entry in blogentries %}
|
||||
<div class="col-md-4 col-sm-6 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
{% if entry.header_image %}
|
||||
|
|
Loading…
Reference in a new issue