2017-11-16 05:52:42 -05:00
|
|
|
{% load bleach friendly_url humanize jsonify markdown shortlink %}<article class="card h-entry">
|
2017-10-27 01:04:05 -04:00
|
|
|
{% if entry.photo %}<img class="card-img-top u-photo" src="{{ entry.photo.url }}" />{% endif %}
|
2017-11-16 05:52:42 -05:00
|
|
|
|
|
|
|
{% if entry.in_reply_to %}{% with reply=entry.reply_context %}
|
|
|
|
<article class="card-header media u-in-reply-to h-cite">
|
|
|
|
<a class="align-self-center p-author h-card" href="{{ reply.author.url }}">
|
|
|
|
<img class="mr-3 rounded" width="100" src="{{ reply.author.photo }}"
|
|
|
|
alt="{{ reply.author.name }}" title="{{ reply.author.name }}" />
|
|
|
|
</a>
|
|
|
|
<div class="media-body">
|
|
|
|
{% if reply.name %}<h4 class="p-name">{{ reply.name }}</h4>{% endif %}
|
|
|
|
<div class="e-content{% if not reply.name %} p-name{% endif %}">{{ reply.content | bleach }}</div>
|
|
|
|
</div>
|
|
|
|
</article>{% endwith %}{% endif %}
|
|
|
|
|
2017-10-24 21:31:08 -04:00
|
|
|
<div class="card-body">
|
|
|
|
{% if entry.name %}<h4 class="card-title p-name">{{ entry.name }}</h4>{% endif %}
|
2017-10-24 22:25:58 -04:00
|
|
|
<div class="e-content{% if not entry.name %} p-name{% endif %}">{{ entry.content | markdown }}</div>
|
2017-10-24 21:31:08 -04:00
|
|
|
</div>
|
2017-11-19 18:59:03 -05:00
|
|
|
|
2017-10-24 21:31:08 -04:00
|
|
|
<div class="card-footer">
|
|
|
|
<a class="p-author h-card" href="{{ entry.author.url }}">
|
|
|
|
<img class="u-photo" src="{{ entry.author.avatar.url }}" />
|
|
|
|
{{ entry.author.first_name }} {{ entry.author.last_name }}
|
|
|
|
</a>
|
2017-10-29 23:58:50 -04:00
|
|
|
<a class="u-uid u-url" href="{{ entry.url }}">
|
2017-10-24 21:31:08 -04:00
|
|
|
<time class="dt-published" datetime="{{ entry.published.isoformat }}">
|
2017-12-05 22:07:59 -05:00
|
|
|
<i class="fas fa-calendar"></i>
|
2017-10-24 21:31:08 -04:00
|
|
|
{{ entry.published | naturaltime }}
|
|
|
|
</time>
|
|
|
|
</a>
|
|
|
|
{% if entry.updated != entry.published %}
|
|
|
|
<time class="dt-updated" datetime="{{ entry.updated.isoformat }}">
|
2017-12-05 22:07:59 -05:00
|
|
|
<i class="fas fa-pencil-alt"></i>
|
2017-10-24 21:31:08 -04:00
|
|
|
{{ entry.updated | naturaltime }}
|
|
|
|
</time>
|
2017-12-10 20:33:04 -05:00
|
|
|
{% endif %}
|
2018-01-12 22:49:38 -05:00
|
|
|
<a class="u-url" href="{{ entry.amp_url }}">
|
|
|
|
<i class="fas fa-bolt"></i>
|
|
|
|
amp
|
|
|
|
</a>
|
2017-11-19 18:59:58 -05:00
|
|
|
{% shortlink entry as short %}<a class="u-url" href="{{ short }}">
|
2017-12-05 22:07:59 -05:00
|
|
|
<i class="fas fa-link"></i>
|
2017-11-19 18:59:58 -05:00
|
|
|
{{ short | friendly_url }}
|
|
|
|
</a>
|
2017-11-19 18:59:03 -05:00
|
|
|
</div>
|
|
|
|
|
2017-11-19 19:09:30 -05:00
|
|
|
{% if entry.cats.exists %}
|
2017-11-19 18:59:03 -05:00
|
|
|
<div class="card-footer">
|
2017-11-19 19:09:30 -05:00
|
|
|
{% for c in entry.cats.all %}
|
|
|
|
<a class="p-category" href="{{ c.url }}">
|
2017-12-05 22:07:59 -05:00
|
|
|
<i class="fas fa-paw"></i>
|
2017-11-19 19:09:30 -05:00
|
|
|
{{ c.name }}
|
2017-11-19 18:59:03 -05:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if entry.syndications.exists %}
|
|
|
|
<div class="card-footer">
|
2017-10-24 22:45:33 -04:00
|
|
|
{% for s in entry.syndications.all %}
|
|
|
|
<a class="u-syndication" href="{{ s.url }}">
|
2017-12-20 19:27:17 -05:00
|
|
|
<i class="{{ s.profile.site.icon }}" aria-hidden="true"></i>
|
2017-10-30 22:46:52 -04:00
|
|
|
{{ s.profile }}
|
2017-10-24 22:45:33 -04:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
2017-10-24 21:31:08 -04:00
|
|
|
</div>
|
2017-11-19 18:59:03 -05:00
|
|
|
{% endif %}
|
|
|
|
|
2017-10-30 23:51:50 -04:00
|
|
|
<script class="p-json-ld" type="application/ld+json">{{ entry.json_ld | jsonify }}</script>
|
2017-10-24 21:31:08 -04:00
|
|
|
</article>
|