flex/templates/partial/related_posts.html
2023-04-01 00:32:10 +02:00

14 lines
389 B
HTML

{% if 'pelican.plugins.related_posts' in PLUGINS %}
{% if article.related_posts %}
<div class="related-posts">
<h5>{{ _('You might enjoy') }}</h5>
<ul>
{% for related_post in article.related_posts %}
<li>
<a href="{{ SITEURL }}/{{ related_post.url }}">{{ related_post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endif %}