14 lines
No EOL
511 B
Text
14 lines
No EOL
511 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.date, url) }}
|
|
<div class="card-body">
|
|
{{ summaryMacro(item, url) }}
|
|
{% if item.postType == 'article' and summaryOnly %}
|
|
{% elseif content %}
|
|
<div class="e-content">{{ content | safe }}</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endmacro %} |