Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disqus installation #6

Closed
W1nterSilence opened this issue May 9, 2017 · 1 comment
Closed

Disqus installation #6

W1nterSilence opened this issue May 9, 2017 · 1 comment

Comments

@W1nterSilence
Copy link

Hi again,

Sorry for bothering you with my lame question, but I have one more. I want to add comment engine to my blog. I've chose Disqus, and it have rather clear instructions for the installation here. I've managed to add the code of the Disqus thread in the post.hbs, but I can't find out how to add comment counter for posts on the main page - could you please advice if it is possible?

@HelloWorld017
Copy link
Member

HelloWorld017 commented Jun 18, 2017

  1. Please clone this repository and install node.js.
  2. Please execute npm install in project root directory.
  3. Please edit src/components/Post.vue.
    <h2 class="post-title"><a :href="url">{{title}}</a></h2>
    to
    <h2 class="post-title"><a :href="url + "#disqus_thread">{{title}}</a></h2>
  4. Please execute npm build --production in project root directory and copy js and css files in dist folder.
  5. Please add <script id="dsq-count-scr" src="//EXAMPLE.disqus.com/count.js" async></script> in code injection.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants