death.id.au/_content/_includes/macro-entry.njk

14 lines
511 B
Text
Raw Permalink Normal View History

{% from "macro-card-head.njk" import cardHeadMacro %}
2022-12-08 05:43:24 +00:00
{% from "macro-summary.njk" import summaryMacro %}
{% macro entryMacro(item, author, url, content, summaryOnly=false) %}
<div class="h-entry type-{{ item.postType }}">
{{ cardHeadMacro(author, item.date, url) }}
<div class="card-body">
2022-12-08 05:43:24 +00:00
{{ summaryMacro(item, url) }}
{% if item.postType == 'article' and summaryOnly %}
{% elseif content %}
<div class="e-content">{{ content | safe }}</div>
{% endif %}
</div>
</div>
{% endmacro %}