Gordon Pedersen
6647dabdc8
Needed a little modification here and there to make it work with the activity pub data structure, but it's looking pretty good!
14 lines
No EOL
512 B
Text
14 lines
No EOL
512 B
Text
{% from "macro-card-head.njk" import cardHeadMacro %}
|
|
{% from "macro-summary.njk" import summaryMacro %}
|
|
{% macro entryMacro(item, author, url, content, summaryOnly=false) %}
|
|
<div class="h-entry type-{{ item.postType }}">
|
|
{{ cardHeadMacro(author, item.published, url) }}
|
|
<div class="card-body">
|
|
{{ summaryMacro(item, url) }}
|
|
{% if item.type == 'article' and summaryOnly %}
|
|
{% elseif content %}
|
|
<div class="e-content">{{ content | safe }}</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endmacro %} |