2024-04-13 22:02:54 +00:00
|
|
|
{% for post in posts %}
|
2023-02-20 23:15:13 +00:00
|
|
|
<section class="{% if post.sticky %}sticky {% endif %}blog-box">
|
2024-04-23 20:36:51 +00:00
|
|
|
{% if post.is_organization_private and show_organization_private_icon %}
|
|
|
|
<div style="margin-bottom: 1em; display: flex;">
|
|
|
|
{% for org in post.organizations.all() %}
|
|
|
|
{% include "organization/tag.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-02-20 23:15:13 +00:00
|
|
|
<div style="margin-bottom: 0.5em">
|
2024-04-13 03:26:17 +00:00
|
|
|
<span class="post-content-header time">
|
2024-04-13 22:02:54 +00:00
|
|
|
{% with authors=post.get_authors() %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{%- if authors -%}
|
2024-04-12 06:51:57 +00:00
|
|
|
<span class="user-img" style="width: 1.5em; height: 1.5em">
|
2024-04-14 05:23:14 +00:00
|
|
|
<img src="{{gravatar(authors[0])}}" loading="lazy">
|
2024-04-12 06:51:57 +00:00
|
|
|
</span>
|
2023-02-20 23:15:13 +00:00
|
|
|
<span class="post-authors">{{ link_users(authors) }}</span>
|
|
|
|
{%- endif -%}
|
|
|
|
{% endwith %}
|
|
|
|
•
|
2024-02-03 04:23:05 +00:00
|
|
|
{{ relative_time(post.publish_on) }}
|
2023-02-20 23:15:13 +00:00
|
|
|
{%- if post.sticky %} •
|
|
|
|
<i title="Sticky" class="fa fa-star fa-fw"></i>{% endif -%}
|
2023-02-05 13:13:12 +00:00
|
|
|
</span>
|
2023-02-20 23:15:13 +00:00
|
|
|
<span style="float: right">
|
|
|
|
<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">
|
2024-04-13 22:02:54 +00:00
|
|
|
{{ comment_count(post) }}
|
2023-02-20 23:15:13 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<h2 class="title">
|
|
|
|
<a href="{{ url('blog_post', post.id, post.slug) }}">{{ post.title }}</a>
|
|
|
|
</h2>
|
|
|
|
<div class="blog-description">
|
|
|
|
<div class="summary content-description">
|
2024-05-29 05:14:42 +00:00
|
|
|
{% cache 86400 'post_content' post.id %}
|
|
|
|
{{ post.content|markdown(lazy_load=True)|reference|str|safe }}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% endcache %}
|
|
|
|
</div>
|
|
|
|
<div class="show-more"> {{_("...More")}} </div>
|
|
|
|
</div>
|
|
|
|
<div class="actionbar-box">
|
2023-08-03 09:04:39 +00:00
|
|
|
{% set pagevote = post.get_or_create_pagevote() %}
|
|
|
|
{% set bookmark = post.get_or_create_bookmark() %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% set hide_actionbar_comment = True %}
|
|
|
|
{% set include_hr = False %}
|
|
|
|
{% set share_url = request.build_absolute_uri(post.get_absolute_url()) %}
|
|
|
|
{% include "actionbar/list.html" %}
|
2022-03-21 21:09:16 +00:00
|
|
|
</div>
|
2023-02-20 23:15:13 +00:00
|
|
|
</section>
|
|
|
|
{% endfor %}
|
|
|
|
{% include "feed/has_next.html" %}
|