GithubHelp home page GithubHelp logo

Comments (2)

cr105ph1nx avatar cr105ph1nx commented on June 4, 2024

Yes it is possible. You just go to this URL and follow the instructions: https://disqus.com/admin/create/
They'll give you a script that you need to paste on any of the pages you want the disqus section to appear. I chose to put it in layouts/_default/single.html. I also recommend that you uncomment and edit the config settings like they suggest.

Here's a demo of how it looks like if you're interested.

is disqus possible with this theme? I configured it but nothing shows up.

You said you configured it but nothing shows up, do you mind giving more information on what do you think is causing this problem so that we can help you?

from blist-hugo-theme.

chris-gillatt avatar chris-gillatt commented on June 4, 2024

As @cr105ph1nx said, edit layouts/_default/single.html and add:

  <div id="disqus_thread"></div>
  <script>
      var disqus_config = function () {
      this.page.url = "{{ .Site.BaseURL }}";  
      this.page.identifier = "{{ .Title }}"; 
      };
      (function() { // DON'T EDIT BELOW THIS LINE
      var d = document, s = d.createElement('script');
      s.src = 'https://yourDisqusShortname .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">comments powered by Disqus.</a></noscript>

Don't forget to update yourDisqusShortname.

You probably want to paste it below {{- partial "social.html" . -}} in the existing code.

from blist-hugo-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.