Giter Site home page Giter Site logo

Disqus support? about wintersmith HOT 4 CLOSED

jnordberg avatar jnordberg commented on August 10, 2024
Disqus support?

from wintersmith.

Comments (4)

lhagan avatar lhagan commented on August 10, 2024

You should be able to implement Disqus comments simply by adding their code to the end of your articles.jade template, right?

| <div id="disqus_thread"></div>
| <script type="text/javascript">
|    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|    var disqus_shortname = 'shortname'; // required: replace example with your forum shortname
|
|    /* * * DON'T EDIT BELOW THIS LINE * * */
|    (function() {
|        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|        dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
|        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|    })();
| </script>
| <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
| <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

from wintersmith.

asselinpaul avatar asselinpaul commented on August 10, 2024

Yeah I guess so, sorry for the trouble.

from wintersmith.

AlexZeitler avatar AlexZeitler commented on August 10, 2024

@asselinpaul How did you get it working? I tried it as @lhagan suggested but I get errors like "Unexpected token ;"
I can remove all ; and add line breaks where neccessary but when it comes to the } I'm stuck.

from wintersmith.

AlexZeitler avatar AlexZeitler commented on August 10, 2024

Solved it using this sample.

from wintersmith.

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.