diff options
author | Wang Chucheng <me@wangchucheng.com> | 2021-03-03 18:50:27 +0300 |
---|---|---|
committer | Wang Chucheng <me@wangchucheng.com> | 2021-03-03 18:50:27 +0300 |
commit | 4d319a1c3594e8efe16b47b2c0ced5716c0237e5 (patch) | |
tree | b55e8db1c014c9677c8e61b356abe95d5723339b /layouts | |
parent | 4f4c8443a391b4933a019a0940c8f8b86d93101e (diff) |
refactor: deprecate .GetParam
Closes #73
Diffstat (limited to 'layouts')
-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) { |