Table of Contents
To implement a Disqus comment system on your Jekyll site, you’ll need to configure it with your own Disqus account. Here’s a step-by-step guide to getting your Disqus comments up and running across different themes:
-
Locate the Disqus Comment Include File:
- Navigate to the
_includes/disqus_comment.html
file within your Jekyll theme directory.
- Navigate to the
-
Modify the Disqus Shortname:
- On line 15 of the
disqus_comment.html
file, locate the existing Disqus shortname. - Replace the
shortname
with your own Disqus account shortname. - Original:
s.src = "//shortname.disqus.com/embed.js";
- Updated:
s.src = "//your-disqus-shortname.disqus.com/embed.js";
- For example, if your Disqus shortname is
example
, the code would become:s.src = "//example.disqus.com/embed.js";
- On line 15 of the
-
Apply Changes Across Different Themes:
- Use your personalized Disqus shortname in other themes you may utilize, ensuring a consistent commenting system throughout your website portfolio.
-
Testing and Troubleshooting:
- After making these changes, ensure you build your Jekyll site and test the commenting feature on your pages.
- In case you encounter any issues with your Disqus setup, feel free to reach out for support.