diff options
Diffstat (limited to 'tpl/tplimpl/embedded/templates/disqus.html')
-rw-r--r-- | tpl/tplimpl/embedded/templates/disqus.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/tplimpl/embedded/templates/disqus.html b/tpl/tplimpl/embedded/templates/disqus.html index ab51bb5c0..fed512ff0 100644 --- a/tpl/tplimpl/embedded/templates/disqus.html +++ b/tpl/tplimpl/embedded/templates/disqus.html @@ -3,9 +3,9 @@ {{ if .Site.DisqusShortname }}<div id="disqus_thread"></div> <script type="application/javascript"> var disqus_config = function () { - {{with .GetParam "disqus_identifier" }}this.page.identifier = '{{ . }}';{{end}} - {{with .GetParam "disqus_title" }}this.page.title = '{{ . }}';{{end}} - {{with .GetParam "disqus_url" }}this.page.url = '{{ . | html }}';{{end}} + {{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}} + {{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}} + {{with .Params.disqus_url }}this.page.url = '{{ . | html }}';{{end}} }; (function() { if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) { |