Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Some Post List Content show blank in listing page
Occasional Contributor
May 17, 2017 12:40 AM - edited May 17, 2017 12:40 AM
There're some posts that show blank content in the blog list page. Those posts got content like any other post in my blog. Here's my code for listing page:
{% for content in contents %}
<div class="post-item b4y-post-item">
{% if not simple_list_page %}
<img src="{{ content.post_list_summary_featured_image }}" alt="{{ content.featured_image_alt_text }}" class="blog-list-img">
<div class="post-body clearfix post-body-list">
{% if content.topic_list %}
<p id="hubspot-topic_data">
{% for topic in content.topic_list %}
<a class="topic-link" href="{{ group.absolute_url }}/topic/{{ topic.slug }}">{{ topic.name }}</a>{% if not loop.last %},{% endif %}
{% endfor %}
</p>
{% endif %}
<div class="post-header">
<h2>{{ content.name }}</h2>
</div>
<div class="post-list-item-content">
{{ content.post_list_content|truncatehtml(120, '...', false)}}
</div>
</div>
{% if content_group.show_summary_in_listing %}
<a class="more-link" href="{{ content.absolute_url }}">Mehr lesen</a>
{% endif %}
{% else %}
<h2 class="post-listing-simple"><a href="{{content.absolute_url}}">{{ content.name }}</a></h2>
{% endif %}
</div>
{% endfor %}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content