Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use disqus comments in github pages blog (Markdown)?

Is it possible to integrate disqus html comments in a blog using github-pages? I like the idea of using github, jekyll and markdown to manage my site and blog for simplicity. However, I'd like to include disqus commenting capability. However, since markdown generates the html - how do I include the html/js code for disqus ?

like image 632
Jon Avatar asked Jan 30 '14 01:01

Jon


People also ask

What are Disqus comments?

Disqus is a networked community platform used by hundreds of thousands of sites all over the web. With Disqus, your website gains a feature-rich comment system complete with social network integration, advanced administration and moderation options, and other extensive community functions.

Does GitHub Pages support Markdown?

GitHub Pages supports two Markdown processors: kramdown and GitHub's own Markdown processor, which is used to render GitHub Flavored Markdown (GFM) throughout GitHub.

What is Disqus blog?

The Disqus BlogDisqus offers the best add-on tools for site owners to power discussions, increase engagement, and earn revenue. We were unable to load Disqus Recommendations.

Where is Disqus used?

Disqus (/dɪsˈkʌs/) is an American blog comment hosting service for web sites and online communities that use a networked platform.


1 Answers

The easiest and cleanest way to do it is to create a partial with the HTML that disqus provides in your _includes/ folder (e.g. _includes/disqus.html) and then just including it in your posts layout file (e.g. _layouts/post.md):

{% include disqus.html %} 

You can see an example here: post layout and disqus partial.

like image 172
andersonvom Avatar answered Oct 14 '22 12:10

andersonvom