2018-06-19 01:47:10 -04:00
|
|
|
{% macro hEntry(entry, indent_width) -%}
|
|
|
|
{%- set i = ' ' * indent_width -%}
|
2018-06-27 21:03:31 -04:00
|
|
|
<article class="h-entry media">
|
|
|
|
{{i}}<aside class="info">
|
2018-06-19 01:47:10 -04:00
|
|
|
{{i}}<a class="p-author h-card" href="{{ entry.author.url }}">
|
2018-06-27 21:03:31 -04:00
|
|
|
{{i}}<img class="u-photo img-fluid" src="{{ entry.author.avatar.url }}" alt="{{ entry.author.name }}" />
|
|
|
|
{{i}}<span class="p-name sr-only">{{ entry.author.name }}</span>
|
2018-06-19 01:47:10 -04:00
|
|
|
{{i}}</a>
|
|
|
|
{{i}}<a class="u-uid u-url" href="{{ entry.url }}">
|
2018-06-27 22:10:19 -04:00
|
|
|
{{i}}<time class="dt-published media" datetime="{{ entry.published.isoformat() }}">
|
|
|
|
{{i}}<i class="fas fa-fw fa-calendar" aria-hidden="true"></i>
|
|
|
|
{{i}}<div class="media-body">{{ entry.published | naturaltime }}</div>
|
2018-06-27 21:03:31 -04:00
|
|
|
{{i}}</time>
|
2018-06-19 01:47:10 -04:00
|
|
|
{{i}}</a>
|
2018-06-27 22:10:19 -04:00
|
|
|
{{i}}<time class="dt-updated media" datetime="{{ entry.updated.isoformat() }}"{% if (entry.updated | naturaltime) == (entry.published | naturaltime) %} hidden{% endif %}>
|
|
|
|
{{i}}<i class="fas fa-fw fa-pencil-alt" aria-hidden="true"></i>
|
|
|
|
{{i}}<div class="media-body">{{ entry.updated | naturaltime }}</div>
|
2018-06-19 01:47:10 -04:00
|
|
|
{{i}}</time>
|
2018-06-27 22:10:19 -04:00
|
|
|
{{i}}<a class="u-url media" href="{{ entry.short_url }}">
|
|
|
|
{{i}}<i class="fas fa-fw fa-link" aria-hidden="true"></i>
|
|
|
|
{{i}}<div class="media-body">{{ entry.short_url | friendly_url }}</div>
|
2018-06-19 01:47:10 -04:00
|
|
|
{{i}}</a>
|
2018-06-27 21:03:31 -04:00
|
|
|
{{i}}</aside>
|
|
|
|
|
2018-06-27 22:10:19 -04:00
|
|
|
{{i}}<div class="card media-body">
|
2018-06-27 21:03:31 -04:00
|
|
|
{% if entry.photo %}
|
|
|
|
{{i}}<img class="card-img-top u-photo" src="{{ entry.photo.url }}" />
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{{i}}<div class="card-body">
|
|
|
|
{% if entry.name %}
|
|
|
|
{{i}}<h4 class="card-title p-name">{{ entry.name }}</h4>
|
|
|
|
{% endif %}
|
|
|
|
{{i}}<div class="e-content">
|
|
|
|
{{i}}{{ entry.content | markdown }}
|
|
|
|
{{i}}</div>
|
2018-06-27 21:48:37 -04:00
|
|
|
|
|
|
|
{% for c in entry.cats.all() %}
|
|
|
|
{{i}}<a class="p-category card-link" href="{{ c.url }}">
|
|
|
|
{{i}}<i class="fas fa-paw" aria-hidden="true"></i>
|
|
|
|
{{i}}{{ c.name }}
|
|
|
|
{{i}}</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% for s in entry.syndications.all() %}
|
|
|
|
{{i}}<a class="u-syndication card-link" href="{{ s.url }}">
|
|
|
|
{{i}}<i class="{{ s.profile.site.icon }}" aria-hidden="true"></i>
|
|
|
|
{{i}}{{ s.profile }}
|
|
|
|
{{i}}</a>
|
|
|
|
{% endfor %}
|
2018-06-27 21:03:31 -04:00
|
|
|
{{i}}</div>
|
2018-06-19 01:47:10 -04:00
|
|
|
{{i}}</div>
|
|
|
|
|
|
|
|
{{i}}<script class="p-json-ld" type="application/ld+json">{{ entry.json_ld | tojson }}</script>
|
|
|
|
{{i}}</article>
|
|
|
|
{%- endmacro %}
|