Skip to content

Commit

Permalink
adding disqus comments for posts
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakdey committed Jun 15, 2024
1 parent 4c20e1a commit 859a38a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ buildDrafts = false
buildFuture = false

# googleAnalytics = "G-XXXXXXXXX"
disqusShortname = "priyakdey-com"

[imaging]
anchor = 'Center'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ categories = [ "Clean Code", "Design Patterns", "Software Development", "Microse
tags = [ "design patterns", "software architecture", "microservice design", "adapter pattern", "microservices", "authorization", "java", "code refactoring", "clean code", "gangs of four" ]
showViews = true
showLikes = true
showComments = true
+++

In software engineering, design patterns are essential tools that help us solve
Expand Down
1 change: 1 addition & 0 deletions content/posts/house-robber/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ categories = [ "Software Engineering", "Algorithms" ]
tags = [ "programming", "problem solving", "datastructure", "algorithms", "dynamic programming", "recursion", "memoization", "tabulation", "leetcode", "python", "coding", "tech" ]
showViews = true
showLikes = true
showComments = true
+++

The [House Robber](https://leetcode.com/problems/house-robber/) problem from
Expand Down
17 changes: 17 additions & 0 deletions layouts/partials/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = "{{ .Permalink }}";
this.page.identifier = "{{ .Permalink }}";
};
(function () {
var d = document,
s = d.createElement("script");
s.src = "https://{{ .Site.DisqusShortname }}.disqus.com/embed.js";
s.setAttribute("data-timestamp", +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>
Please enable JavaScript to view the comments powered by Disqus.
</noscript>

0 comments on commit 859a38a

Please sign in to comment.