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

[bug] disqus缺少title字段。 #145

Closed
geekrainy opened this issue May 9, 2015 · 1 comment
Closed

[bug] disqus缺少title字段。 #145

geekrainy opened this issue May 9, 2015 · 1 comment
Milestone

Comments

@geekrainy
Copy link
Contributor

<script type="text/javascript">
      var disqus_shortname = '{{theme.disqus_shortname}}';
      var disqus_identifier = '{{ page.path }}';
      var disqus_title = '{{ page.title }}'; //加上后在disqus后台才能正确显示文章名
      var disqus_url = '{{ page.permalink }}';

      (function(){
        var dsq = document.createElement('script');
        dsq.type = 'text/javascript';
        dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.disqus.com/{{disqus_script}}';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
      }());
    </script>
@iissnan
Copy link
Owner

iissnan commented May 12, 2015

Thanks. @geekrainy

@iissnan iissnan added this to the v0.4.1 milestone May 27, 2015
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