Skip to content

Instantly share code, notes, and snippets.

@mrdougwright
Last active August 17, 2016 19:28
Show Gist options
  • Save mrdougwright/9bf9d2070ac5c0d943ab79f0c5cd8759 to your computer and use it in GitHub Desktop.
Save mrdougwright/9bf9d2070ac5c0d943ab79f0c5cd8759 to your computer and use it in GitHub Desktop.
li-for-jane-gist
<ul>
{% for content in contents %}
<li>
<div class="post-item">
{% if not simple_list_page %}
<div class="post-header">
<h2><a href="{{content.absolute_url}}">{{ content.name }}</a></h2>
</div>
<div class="post-body clearfix">
<!--post summary-->
{% if content.post_list_summary_featured_image %}
<br>
<div class="hs-featured-image-wrapper" style="float: left; ">
<a href="{{content.absolute_url}}" title="" class="hs-featured-image-link">
<img src="{{ content.post_list_summary_featured_image }}" class="hs-featured-image">
</a>
</div>
{% endif %}
{{ content.post_list_content|safe }}
</div>
{% if content_group.show_summary_in_listing %}
<a class="more-link" href="{{ content.absolute_url }}">Read More</a>
{% endif %}
<br>
{% blog_social_sharing "blog_social_sharing" overrideable=False, label='Blog Social Sharing' %}
<br clear="all">
<div class="custom_listing_comments">
{% set comments_number = content.comment_list|length %}
{% set comments_label = "Comment" if comments_number == 1 else "Comments" %}
{{ comments_number }} {{ comments_label }} <a href="{{content.absolute_url}}#comments-listing">Click here to read/write comments</a>
<br>
<hr height="4px;" />
</div>
{% else %}
<h2 class="post-listing-simple"><a href="{{content.absolute_url}}">{{ content.name }}</a></h2>
{% endif %}
</div>
</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment