diff options
Diffstat (limited to 'layouts/partials/comment/disqus.html')
-rw-r--r-- | layouts/partials/comment/disqus.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/comment/disqus.html b/layouts/partials/comment/disqus.html index 96cfe65..2db77f5 100644 --- a/layouts/partials/comment/disqus.html +++ b/layouts/partials/comment/disqus.html @@ -2,9 +2,9 @@ <div id="disqus_thread"></div> <script> 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 .Site.Params.comment.disqus.identifier }}this.page.identifier = '{{ . }}';{{ end }} + {{ with .Site.Params.comment.disqus.title }}this.page.title = '{{ . }}';{{ end }} + {{ with .Site.Params.comment.disqus.url }}this.page.url = '{{ . | html }}';{{ end }} }; (function() { if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) { |