Skip to content

Commit 74c9542

Browse files
committed
add disqus comments to blog posts
1 parent 84142c0 commit 74c9542

7 files changed

Lines changed: 109 additions & 7 deletions

blog/2017-09-07-introducing-command-handler.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,24 @@ <h1> Introducing Command Handler</h1>
375375
second of those in the next part
376376
[https://io.made.com/blog/repository-and-unit-of-work-pattern-in-python/].</p>
377377
</div>
378-
</section>
378+
379+
<div id="disqus_thread" style="margin: 10px"></div>
380+
<script>
381+
382+
var disqus_config = function () {
383+
this.page.url = 'https://www.cosmicpython.com/blog/2017-09-07-introducing-command-handler.html';
384+
this.page.identifier = 'cosmic-python--blog-2017-09-07-introducing-command-handler';
385+
};
386+
387+
(function() { // DON'T EDIT BELOW THIS LINE
388+
var d = document, s = d.createElement('script');
389+
s.src = 'https://cosmic-python.disqus.com/embed.js';
390+
s.setAttribute('data-timestamp', +new Date());
391+
(d.head || d.body).appendChild(s);
392+
})();
393+
</script>
394+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
395+
379396

380397
</section>
381398
</main>

blog/2017-09-08-repository-and-unit-of-work-pattern-in-python.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,24 @@ <h1> Repository and Unit of Work Pattern</h1>
338338
<p>Next time [https://io.made.com/blog/commands-and-queries-handlers-and-views]
339339
we&rsquo;ll look at how to get data back out of the system.</p>
340340
</div>
341-
</section>
341+
342+
<div id="disqus_thread" style="margin: 10px"></div>
343+
<script>
344+
345+
var disqus_config = function () {
346+
this.page.url = 'https://www.cosmicpython.com/blog/2017-09-08-repository-and-unit-of-work-pattern-in-python.html';
347+
this.page.identifier = 'cosmic-python--blog-2017-09-08-repository-and-unit-of-work-pattern-in-python';
348+
};
349+
350+
(function() { // DON'T EDIT BELOW THIS LINE
351+
var d = document, s = d.createElement('script');
352+
s.src = 'https://cosmic-python.disqus.com/embed.js';
353+
s.setAttribute('data-timestamp', +new Date());
354+
(d.head || d.body).appendChild(s);
355+
})();
356+
</script>
357+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
358+
342359

343360
</section>
344361
</main>

blog/2017-09-13-commands-and-queries-handlers-and-views.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,24 @@ <h3>Application Controlled Identifiers</h3>
323323
outside depend on the layers toward the centre.</p>
324324
<p>Next time I&rsquo;ll get back to talking about message buses.</p>
325325
</div>
326-
</section>
326+
327+
<div id="disqus_thread" style="margin: 10px"></div>
328+
<script>
329+
330+
var disqus_config = function () {
331+
this.page.url = 'https://www.cosmicpython.com/blog/2017-09-13-commands-and-queries-handlers-and-views.html';
332+
this.page.identifier = 'cosmic-python--blog-2017-09-13-commands-and-queries-handlers-and-views';
333+
};
334+
335+
(function() { // DON'T EDIT BELOW THIS LINE
336+
var d = document, s = d.createElement('script');
337+
s.src = 'https://cosmic-python.disqus.com/embed.js';
338+
s.setAttribute('data-timestamp', +new Date());
339+
(d.head || d.body).appendChild(s);
340+
})();
341+
</script>
342+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
343+
327344

328345
</section>
329346
</main>

blog/2017-09-19-why-use-domain-events.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,24 @@ <h1> Why use domain events?</h1>
536536
<p>Next time I want to talk about Dependency Injection, why it&rsquo;s great, and why
537537
it&rsquo;s nothing to be afraid of.</p>
538538
</div>
539-
</section>
539+
540+
<div id="disqus_thread" style="margin: 10px"></div>
541+
<script>
542+
543+
var disqus_config = function () {
544+
this.page.url = 'https://www.cosmicpython.com/blog/2017-09-19-why-use-domain-events.html';
545+
this.page.identifier = 'cosmic-python--blog-2017-09-19-why-use-domain-events';
546+
};
547+
548+
(function() { // DON'T EDIT BELOW THIS LINE
549+
var d = document, s = d.createElement('script');
550+
s.src = 'https://cosmic-python.disqus.com/embed.js';
551+
s.setAttribute('data-timestamp', +new Date());
552+
(d.head || d.body).appendChild(s);
553+
})();
554+
</script>
555+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
556+
540557

541558
</section>
542559
</main>

blog/2020-01-25-testing_external_api_calls.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,24 @@ <h2>Prior art</h2>
746746
<li><a href="https://www.youtube.com/watch?v=PBQN62oUnN8">Hoist your I/O</a> by Brandon Rhodes</li>
747747
</ul>
748748
</div>
749-
</section>
749+
750+
<div id="disqus_thread" style="margin: 10px"></div>
751+
<script>
752+
753+
var disqus_config = function () {
754+
this.page.url = 'https://www.cosmicpython.com/blog/2020-01-25-testing_external_api_calls.html';
755+
this.page.identifier = 'cosmic-python--blog-2020-01-25-testing_external_api_calls';
756+
};
757+
758+
(function() { // DON'T EDIT BELOW THIS LINE
759+
var d = document, s = d.createElement('script');
760+
s.src = 'https://cosmic-python.disqus.com/embed.js';
761+
s.setAttribute('data-timestamp', +new Date());
762+
(d.head || d.body).appendChild(s);
763+
})();
764+
</script>
765+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
766+
750767

751768
</section>
752769
</main>

rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Simple patterns for building complex apps
88
</description>
99
<link>https://cosmicpython.com</link>
10-
<lastBuildDate>Wed, 25 Mar 2020 16:52:36 -0000</lastBuildDate>
10+
<lastBuildDate>Wed, 25 Mar 2020 17:00:04 -0000</lastBuildDate>
1111
<pubDate>Sat, 4 Jan 2020 19:15:54 -0500</pubDate>
1212
<atom:link href="https://cosmicpython.com/rss.xml" rel="self" type="application/rss+xml" />
1313

templates/blog_post_template.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,22 @@ <h1> {{ post.title }}</h1>
2020
<div class="content">
2121
{{content}}
2222
</div>
23-
</section>
23+
24+
<div id="disqus_thread" style="margin: 10px"></div>
25+
<script>
26+
27+
var disqus_config = function () {
28+
this.page.url = 'https://www.cosmicpython.com{{ url }}';
29+
this.page.identifier = 'cosmic-python-{{ url.replace("/", "-").replace(".html", "") }}';
30+
};
31+
32+
(function() { // DON'T EDIT BELOW THIS LINE
33+
var d = document, s = d.createElement('script');
34+
s.src = 'https://cosmic-python.disqus.com/embed.js';
35+
s.setAttribute('data-timestamp', +new Date());
36+
(d.head || d.body).appendChild(s);
37+
})();
38+
</script>
39+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
40+
2441
{% endblock %}

0 commit comments

Comments
 (0)