1
0
Fork 0
forked from github/pelican

feat: use social share plugin, comma-separate tags

This commit is contained in:
Oliver Ladner 2025-01-13 15:40:24 +01:00
commit 2ed8e41f1d

View file

@ -95,11 +95,22 @@
{% if article.tags %} {% if article.tags %}
<p> <p>
{% for tag in article.tags %} {% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{{"," if not loop.last }}
{% endfor %} {% endfor %}
</p> </p>
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% if article.share_post and article.status != 'draft' %}
<div class="p-3 border-t-2 border-rp-dawn-overlay dark:border-rp-moon-overlay">
<p>
Share this post on
<a href="{{article.share_post['bluesky']}}" title="Share post on Bluesky">Bluesky</a>,
<a href="{{article.share_post['mastodon']}}" title="Share post on Mastodon">Mastodon</a>,
<a href="{{article.share_post['reddit']}}" title="Share post on Reddit">Reddit</a> or
<a href="{{article.share_post['twitter']}}" title="Share post on evil Twitter">Twitter</a>.
</p>
</div>
{% endif %}
</article> </article>
{% endblock %} {% endblock %}