763 B
763 B
Here is the Bot for your Mastodon Comments
This bot is 100% for creating a post for commenting on an article on your blog. I built this specifically for my pelican SSG based site.
To make work on your pelican site in the pelicanconf.py add
MASTODON_COMMENTS = True
Then you just need to add this to your theme:
{% if MASTODON_COMMENTS is sameas True %}
<p><a href="{{ SITEURL }}/mastodon-comments/bot.php?title={{ article.title|striptags }}&url={{ SITEURL }}/{{ article.url }}{% if article.photo_image %}&image=../{{ article.photo_image[1] }}{% endif %}">Click Here to Comment on Mastodon.</a></p>
{% endif %}
I need to make it prettier, but this is looking good so far.
If you use the photos plugin you can remove the image variable.