<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Disqus on Much Ado About IT</title><link>https://it.knightnet.org.uk/tags/disqus/</link><description>
Recent content about Disqus from Much Ado About IT |
Ramblings and rantings from IT Architect &amp; Designer, Julian Knight</description><generator>Hugo | gohugo.io | Theme twenty-sixteen</generator><language>en-gb</language><copyright>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</copyright><lastBuildDate>Mon, 24 Apr 2023 21:27:28 +0000</lastBuildDate><atom:link href="https://it.knightnet.org.uk/tags/disqus/feed.xml" rel="self" type="application/rss+xml"/><item><title>Add Disqus to Jekyll pages</title><link>https://it.knightnet.org.uk/kb/ghjekyll/add-disqus/</link><guid isPermaLink="true">https://it.knightnet.org.uk/kb/ghjekyll/add-disqus/</guid><pubDate>Tue, 02 Jan 2018 17:11:00 +0000</pubDate><guid>https://it.knightnet.org.uk/kb/ghjekyll/add-disqus/</guid><description><div>Example code to add to every page as a footer to enable the Disqus comments service.</div><div>&lt;p>Create &lt;code>footer.html&lt;/code> in your site &lt;code>_includes&lt;/code> folder or include this in the default layout in &lt;code>_layouts&lt;/code>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-html" data-lang="html">&lt;span class="line">&lt;span class="cl">{% if page.comments %}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&amp;lt;&lt;/span>&lt;span class="nt">div&lt;/span> &lt;span class="na">id&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;disqus_thread&amp;#34;&lt;/span>&lt;span class="p">&amp;gt;&amp;lt;/&lt;/span>&lt;span class="nt">div&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&amp;lt;&lt;/span>&lt;span class="nt">script&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="kd">var&lt;/span> &lt;span class="nx">disqus_config&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="kd">function&lt;/span> &lt;span class="p">()&lt;/span> &lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">this&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">page&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">url&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s1">&amp;#39;{{ page.url | absolute_url }}&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">this&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">page&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">identifier&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s1">&amp;#39;{{ page.id }}&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">};&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">(&lt;/span>&lt;span class="kd">function&lt;/span>&lt;span class="p">()&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="kd">var&lt;/span> &lt;span class="nx">d&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">document&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nx">s&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nx">d&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">createElement&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;script&amp;#39;&lt;/span>&lt;span class="p">);&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nx">s&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">src&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s1">&amp;#39;https://&amp;lt;&amp;lt;set_this_from_disqus_settings&amp;gt;&amp;gt;.disqus.com/embed.js&amp;#39;&lt;/span>&lt;span class="p">;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nx">s&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">setAttribute&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;data-timestamp&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="o">+&lt;/span>&lt;span class="k">new&lt;/span> &lt;span class="nb">Date&lt;/span>&lt;span class="p">());&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="nx">d&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">head&lt;/span> &lt;span class="o">||&lt;/span> &lt;span class="nx">d&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">body&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="nx">appendChild&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nx">s&lt;/span>&lt;span class="p">);&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">})();&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&amp;lt;/&lt;/span>&lt;span class="nt">script&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&amp;lt;&lt;/span>&lt;span class="nt">noscript&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>Please enable JavaScript to view the &lt;span class="p">&amp;lt;&lt;/span>&lt;span class="nt">a&lt;/span> &lt;span class="na">href&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;https://disqus.com/?ref_noscript&amp;#34;&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>comments powered by Disqus.&lt;span class="p">&amp;lt;/&lt;/span>&lt;span class="nt">a&lt;/span>&lt;span class="p">&amp;gt;&amp;lt;/&lt;/span>&lt;span class="nt">noscript&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{% endif %}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">&amp;lt;&lt;/span>&lt;span class="nt">div&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>Updated: {{ page.date | default: site.time | date: &amp;#34;%Y-%m-%d %H:%M&amp;#34; }} &lt;span class="p">&amp;lt;&lt;/span>&lt;span class="nt">a&lt;/span> &lt;span class="na">href&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;#top&amp;#34;&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>Top&lt;span class="p">&amp;lt;/&lt;/span>&lt;span class="nt">a&lt;/span>&lt;span class="p">&amp;gt;&amp;lt;/&lt;/span>&lt;span class="nt">div&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Note that the default &lt;code>minima&lt;/code> theme for Jekyll/GitHub pages includes a setting for this in _config.yml but currently does &lt;strong>not&lt;/strong> include the appropriate include file to let you use it!&lt;/p>
&lt;p>Also note that you have very little control over the styling. In particular, the width is set to 100% so make sure that this code is wrapped in a div that is limited to your normal content width.&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/development">Development</category><category domain="https://it.knightnet.org.uk/tags/jekyll">Jekyll</category><category domain="https://it.knightnet.org.uk/tags/static-site-generators">Static Site Generators</category><category domain="https://it.knightnet.org.uk/tags/disqus">Disqus</category></item><item><title>Updated Blogs</title><link>https://it.knightnet.org.uk/2011/07/updated-blogs.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2011/07/updated-blogs.html</guid><pubDate>Mon, 04 Jul 2011 14:00:35 +0000</pubDate><guid>https://it.knightnet.org.uk/2011/07/updated-blogs.html</guid><description><div/><div>&lt;p>Hi to everyone who has followed this blog and my other blogs (&lt;!-- raw HTML omitted -->Living With Linux&lt;!-- raw HTML omitted --> and my &lt;!-- raw HTML omitted -->Development Blog&lt;!-- raw HTML omitted -->) for a while. The Living With Linux blog is now redirected to the [Linux][1] category on this blog and the development blog redirected to the [Development][2] category.
For a long time I’ve been meaning to consolidate the blogs into a single blog and move the main blog from Blogger to WordPress.
Well, that has now happened so welcome to the new, updated blog.
There may be one or two missing posts and some missing comments but I will fix that as time allows.
I also intend to move back to using Disquss for comments which I think gives a much better reader experience and reach.
So hopefully, I’ll be more inclined to make better use of the blog again now and I will be trying to bring together not only the larger posts on this blog but also my short posts on &lt;!-- raw HTML omitted -->Twitter&lt;!-- raw HTML omitted --> and &lt;!-- raw HTML omitted -->Diigo&lt;!-- raw HTML omitted --> in a more consistent and coherent form.
[1]: topics/operating-systems/linux &amp;ldquo;All posts related to the Linux operating system&amp;rdquo;
[2]: /topics/development &amp;ldquo;All posts related to development and programming&amp;rdquo;&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/blogging">Blogging</category><category domain="https://it.knightnet.org.uk/tags/blogger">Blogger</category><category domain="https://it.knightnet.org.uk/tags/diigo">Diigo</category><category domain="https://it.knightnet.org.uk/tags/disqus">DISQUS</category><category domain="https://it.knightnet.org.uk/tags/twitter">Twitter</category><category domain="https://it.knightnet.org.uk/tags/wordpress">Wordpress</category></item><item><title>New Comments System</title><link>https://it.knightnet.org.uk/2009/05/new-comments-system.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/05/new-comments-system.html</guid><pubDate>Wed, 13 May 2009 06:50:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/05/new-comments-system.html</guid><description><div/><div>&lt;p>I’ve moved my comments over to [Disqus][1] from the default Blogger comments. It means that you don’t have to log in to comment and you get much better tracking of discussions. My other blog “[Much Ado About IT][2]” has had this for a while and it seems to work really well.&lt;/p>
&lt;p>Unfortunately, it does mean that I’ve lost any existing comments – sorry to those who have commented in the past.
[1]: &lt;a href="http://disqus.com">http://disqus.com&lt;/a>
[2]: &lt;a href="http://it.knightnet.org.uk">http://it.knightnet.org.uk&lt;/a>&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/blogging">Blogging</category><category domain="https://it.knightnet.org.uk/tags/blogger">Blogger</category><category domain="https://it.knightnet.org.uk/tags/disqus">Disqus</category></item><item><title>Quick test of new comments system (using DISQUS)</title><link>https://it.knightnet.org.uk/2009/03/quick-test-of-new-comments-system-using-disqus.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/03/quick-test-of-new-comments-system-using-disqus.html</guid><pubDate>Mon, 30 Mar 2009 13:39:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/03/quick-test-of-new-comments-system-using-disqus.html</guid><description><div/><div>&lt;p>Just testing a new commenting system – &lt;!-- raw HTML omitted -->Disqus&lt;!-- raw HTML omitted -->.
Looks like it works OK so I’ll keep it online for now. Currently, you no longer need to be logged in (previously you needed to present either a Blogger, Google or OpenID credential to comment because of spam) since Disqus is supposed to handle this better. However, if the spam starts to reappear, I’ll have to restrict it again.
For blog authors, check out [Psolonoid][1] as well. It provides an easy and controlable way of creating links (like trackbacks) between blog entries.
[1]: &lt;a href="http://www.psolonoid.com">http://www.psolonoid.com&lt;/a>&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/blogging">Blogging</category><category domain="https://it.knightnet.org.uk/tags/disqus">Disqus</category></item></channel></rss>