Skip to content

Commit

Permalink
support disqus
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh119 committed Jan 8, 2024
1 parent 2501e2a commit 3b8292f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
_site
.sass-cache
.jekyll-cache
Expand Down
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ plugins:
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
<<<<<<< Updated upstream
=======

markdown: kramdown
disqus:
shortname: flashinfer-ai
>>>>>>> Stashed changes
17 changes: 17 additions & 0 deletions _includes/disqus_comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% if page.comments != false %}

<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '{{ page.url | absolute_url }}';
this.page.identifier = '{{ page.url | absolute_url }}';
};
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{% endif %}

0 comments on commit 3b8292f

Please sign in to comment.