Adding v1 of twitter comments

This commit is contained in:
Jeff MacKinnon 2022-09-06 16:36:43 -03:00
parent 77f58f464b
commit 91b4b0a372

View file

@ -52,6 +52,14 @@
{% endblock %}
{% block somemorehead %}
{% if article.specialcss %}
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ article.specialcss }}">
{% endif %}
{% endblock somemorehead %}
{% block content %}
<section id="content" class="body">
<header>
@ -127,12 +135,19 @@
{% endif %}
</footer><!-- /.post-info -->
{% if MASTODON_COMMENTS is sameas True %}
<div class="mastodon-comments">
<div class="comments">
<br />
<p><strong><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></strong></p>
<p>If its your first time commenting, <a href="https://jeffmackinnon.com/commenting-on-blog-with-mastodon.html">click here</a> to figure it out.</p>
</div>
{% endif %}
{% if TWITTER_COMMENTS is sameas True %}
<div class="comments">
<br />
<p><strong>To join a conversation on Twitter <a href="https://twitter.com/search?q={{ SITEURL }}/{{ article.url }}">Click Here</a>, and to start a conversation <a class="" href="https://twitter.com/intent/tweet?text={{ article.title|striptags }}&url={{ SITEURL }}/{{ article.url }}{% if SOCIAL_TWITTER %}&via={{ SOCIAL_TWITTER }}{% endif %}" target="_blank" title="Share on Twitter">Click Here</a></p>
<p>In future versions of this theme there will be a bot that will keep track of the comments and display them here, but that is for the future.</p>
</div>
{% endif %}
{% if ARTICLE_FOOTER == true %}
<section id="article-footer">