forked from github/pelican
feat: use social share plugin, comma-separate tags
This commit is contained in:
parent
914dc73320
commit
2ed8e41f1d
1 changed files with 12 additions and 1 deletions
|
|
@ -95,11 +95,22 @@
|
|||
{% if article.tags %}
|
||||
<p>
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{{"," if not loop.last }}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</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>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue