Giter Club home page Giter Club logo

chaplin's People

Contributors

ankitsultana avatar mcomella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chaplin's Issues

Don't display disqus comments in development mode

I had the issue above on my blog which is using Chaplin.

I fixed the issues (I think โ€“ let's wait and see what happens when I add a new post :P) but I'm not clear which part of my fix is the important one here (or if they're both important!).

1: Use a unique url for disqus config url in each post

From the docs on the url config var, their samples uses a full page url. One artifact I noticed from using just site.url is that in the disqus discussion dashboard, new discussions were not created for each page I installed disqus comments on โ€“ there was just one with my site's base url (e.g. http://example.com). Now a new discussion is created each time I publish a new post.

Furthermore, at this faq, they mention, Identifier conflict can be resolved by verifying that a unique URL is being set and then assigning a unique identifier. So both unique url and unique identifier (which seems... redundant, to me).

2: Don't display disqus comments in development mode

The faq also mentions same comments can appear from previewing pages before publishing. As I mentioned in 1, I started to observe new published pages would immediately generate a discussion on my disqus dashboard. I believe If you do this during development mode, each unique post url you create in development will appear as a comment on your disqus overview, which is not what you want.


Pull request inbound...

btw, I skimmed your other template, accent, and I think it might suffer from the same issue.

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.