Renamed newsfeed to blogentries in home page

This commit is contained in:
Oleg Lavrovsky 2017-07-03 16:49:12 +02:00
parent aa5215d603
commit 9bd87050f2
2 changed files with 3 additions and 3 deletions

View file

@ -212,7 +212,7 @@ class HomePage(Page):
return articles[:4] return articles[:4]
@property @property
def newsfeed(self): def blogentries(self):
# Get list of latest news # Get list of latest news
curlang = translation.get_language() curlang = translation.get_language()
if not curlang in ['de', 'fr']: curlang = 'de' # Default language if not curlang in ['de', 'fr']: curlang = 'de' # Default language
@ -227,7 +227,7 @@ class HomePage(Page):
# Update template context # Update template context
context = super(HomePage, self).get_context(request) context = super(HomePage, self).get_context(request)
context['featured'] = self.featured context['featured'] = self.featured
context['newsfeed'] = self.newsfeed context['blogentries'] = self.blogentries
return context return context
parent_page_types = ['wagtailcore.Page'] parent_page_types = ['wagtailcore.Page']

View file

@ -3,7 +3,7 @@
<section id="news"> <section id="news">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
{% for entry in newsfeed %} {% for entry in blogentries %}
<div class="col-md-4 col-sm-6 col-xs-12"> <div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel panel-default"> <div class="panel panel-default">
{% if entry.header_image %} {% if entry.header_image %}