tpl: Improve the built-in Disqus template (#3639)
authorYihui Xie <xie@yihui.name>
Tue, 27 Jun 2017 11:40:01 +0000 (06:40 -0500)
committerAnthony Fok <foka@debian.org>
Tue, 27 Jun 2017 11:40:01 +0000 (05:40 -0600)
commit2e1e4934b60ce8081a7f3a79191ed204f3098481
tree0617b826f7bec711282f9efa0d07a4b45649cad1
parenta54404968a4b36579797f2e7ff7f5eada94866d9
tpl: Improve the built-in Disqus template (#3639)

* Improve the built-in Disqus template

  Set `disqus_identifier`, `disqus_title`, and `disqus_url`
  only if the user has explicitly provided them.

  Do not load Disqus when the website is previewed locally,
  otherwise it is very confusing.

* Use disqus_config instead of three global variables

  https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables
tpl/tplimpl/template_embedded.go