~xdavidwu/xdavidwu.link

6b099119bb341d16ebe3e468e9edb427dd24dfaf — Michael Rose 10 years ago 77f5b64
Include Disqus script only if shortname is present in _config.yml
1 files changed, 3 insertions(+), 1 deletions(-)

M _includes/_disqus_comments.html
M _includes/_disqus_comments.html => _includes/_disqus_comments.html +3 -1
@@ 1,3 1,4 @@
{% if site.disqus_shortname %}
<script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = '{{ site.disqus_shortname }}'; // required: replace example with your forum shortname


@@ 18,4 19,5 @@
    }());
</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>
\ No newline at end of file
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
{% endif %}
\ No newline at end of file