49 lines
1.2 KiB
HTML
49 lines
1.2 KiB
HTML
{% load i18n thumbnail cms_tags %}
|
|
|
|
<div class="post-preview">
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
|
|
<img style="margin-top:11%"src="{% thumbnail post.main_image 240x235 crop upscale subject_location=post.main_image.subject_location %}"/>
|
|
|
|
</div>
|
|
<div class="col-md-8">
|
|
<a href=" {{ post.get_absolute_url }} ">
|
|
<h2 class="post-title">
|
|
{{ post.title }}
|
|
</h2>
|
|
</a>
|
|
<p class="post-meta" style="font-size:0.9em;">
|
|
Posted
|
|
{% if post.author %}
|
|
by
|
|
<!-- <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}"> -->
|
|
{% if post.author.get_full_name %}
|
|
{{ post.author.get_full_name }}
|
|
{% else %}
|
|
{{ post.author }}
|
|
{% endif %}
|
|
<!-- </a> -->
|
|
{% endif %}
|
|
on {{ post.date_published|date:"DATE_FORMAT" }}
|
|
</p>
|
|
|
|
<p class="post-subtitle">
|
|
{% if not TRUNCWORDS_COUNT %}
|
|
{% render_model post "abstract" %}
|
|
{% else %}
|
|
{% render_model post "abstract" "" "" 'truncatewords_html:TRUNCWORDS_COUNT' %}
|
|
{% endif %}
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<hr>
|