2022-03-21 21:09:16 +00:00
|
|
|
<section class="{% if post.sticky %}sticky {% endif %}blog-box">
|
|
|
|
<div style="margin-bottom: 0.5em">
|
2020-12-28 05:45:58 +00:00
|
|
|
<span class="time">
|
2020-01-21 06:35:58 +00:00
|
|
|
{% with authors=post.authors.all() %}
|
2020-12-28 05:45:58 +00:00
|
|
|
{%- if authors -%}
|
2022-03-21 21:09:16 +00:00
|
|
|
<img src="{{gravatar(authors[0])}}" style="width: 1.5em; border-radius: 50%; margin-bottom: -0.3em">
|
2020-01-21 06:35:58 +00:00
|
|
|
<span class="post-authors">{{ link_users(authors) }}</span>
|
2020-12-28 05:45:58 +00:00
|
|
|
{%- endif -%}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endwith %}
|
2022-05-30 07:37:48 +00:00
|
|
|
•
|
|
|
|
{{ relative_time(post.publish_on, abs=_('on {time}'), rel=_('{time}')) -}}
|
|
|
|
{%- if post.sticky %} •
|
|
|
|
<i title="Sticky" class="fa fa-star fa-fw"></i>{% endif -%}
|
|
|
|
{% if post.is_organization_private and show_organization_private_icon %}
|
|
|
|
•
|
|
|
|
<span>
|
|
|
|
{% for org in post.organizations.all() %}
|
|
|
|
<span class="organization-tag" style="display: inherit;">
|
|
|
|
<a href="{{ org.get_absolute_url() }}">
|
|
|
|
<i class="fa fa-lock"></i> {{ org.name }}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2020-12-28 05:45:58 +00:00
|
|
|
</span>
|
2022-03-21 21:09:16 +00:00
|
|
|
<span style="float: right">
|
2020-12-28 05:45:58 +00:00
|
|
|
<a href="{{ url('blog_post', post.id, post.slug) }}#comments" class="blog-comment-count-link">
|
|
|
|
<i class="fa fa-comments blog-comment-icon"></i>
|
|
|
|
<span class="blog-comment-count">
|
|
|
|
{{- post_comment_counts[post.id] or 0 -}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</span>
|
2022-03-21 21:09:16 +00:00
|
|
|
</div>
|
|
|
|
<h2 class="title">
|
|
|
|
<a href="{{ url('blog_post', post.id, post.slug) }}">{{ post.title }}</a>
|
|
|
|
</h2>
|
2022-11-17 00:48:32 +00:00
|
|
|
<div class="blog-description">
|
|
|
|
<div class="summary content-description">
|
|
|
|
{% cache 86400 'post_summary' post.id %}
|
|
|
|
{{ post.summary|default(post.content, true)|markdown(lazy_load=True)|reference|str|safe }}
|
|
|
|
{% endcache %}
|
|
|
|
</div>
|
|
|
|
{% set pagevote = post.pagevote %}
|
2022-11-17 19:17:45 +00:00
|
|
|
{% set bookmark = post.bookmark %}
|
2022-11-17 00:48:32 +00:00
|
|
|
{% set hide_actionbar_comment = True %}
|
|
|
|
{% set include_hr = True %}
|
2022-11-19 23:30:07 +00:00
|
|
|
{% set share_url = request.build_absolute_uri(post.get_absolute_url()) %}
|
2022-11-17 00:48:32 +00:00
|
|
|
{% include "actionbar/list.html" %}
|
2020-12-28 05:45:58 +00:00
|
|
|
</div>
|
|
|
|
</section>
|