Moved the embed code to the settings

This commit is contained in:
Jeff MacKinnon 2022-11-14 13:55:53 -04:00
parent 9f255ef1a7
commit c494efbfde

View file

@ -144,24 +144,21 @@
{% if COMMENTS is sameas True %} {% if COMMENTS is sameas True %}
<div class="comments"> <div class="comments">
<h3>Comments?</h3> <h3>Comments</h3>
<script type="text/javascript" src="/hashover/comments.php"></script> {{ COMMENT_EMBED }}
<noscript>Please enable JavaScript to load the comments.</noscript>
<div id="hashover"></div>
</div> </div>
{% endif %} {% endif %}
{% if MASTODON_COMMENTS is sameas True %} {% if MASTODON_COMMENTS is sameas True %}
<div class="comments"> <div class="comments">
<br /> <h3>Comment on Mastodon</h3>
<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> {{ MASTODON_EMBED }}
<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> </div>
{% endif %} {% endif %}
{% if TWITTER_COMMENTS is sameas True %} {% if TWITTER_COMMENTS is sameas True %}
<div class="comments"> <div class="comments">
<br /> <h3>Comment on Twitter</h3>
<p><strong>To join a conversation on Twitter <a href="https://twitter.com/search?q={{ SITEURL }}/{{ article.url }}">click here</a>.</p> <p><strong>To join a conversation on Twitter <a href="https://twitter.com/search?q={{ SITEURL }}/{{ article.url }}">click here</a>.</p>
</div> </div>
{% endif %} {% endif %}