diff options
author | amzrk2 | 2020-04-23 19:42:06 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-23 19:42:06 +0800 |
commit | 0ed932121cd278fa1678e518728e7bb728bd1a9a (patch) | |
tree | f9999488f5fc0db69e3451320148cac4e9646083 /layouts/partials/comment-disqus.html | |
parent | 39d85cc63387f940dcfd6cef1a6d43d2cc4ebdf1 (diff) | |
download | hugo-theme-fuji-0ed932121cd278fa1678e518728e7bb728bd1a9a.tar.gz hugo-theme-fuji-0ed932121cd278fa1678e518728e7bb728bd1a9a.tar.bz2 hugo-theme-fuji-0ed932121cd278fa1678e518728e7bb728bd1a9a.zip |
Adjust comments settings
Diffstat (limited to 'layouts/partials/comment-disqus.html')
-rw-r--r-- | layouts/partials/comment-disqus.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/comment-disqus.html b/layouts/partials/comment-disqus.html index 4477226..81c9c68 100644 --- a/layouts/partials/comment-disqus.html +++ b/layouts/partials/comment-disqus.html @@ -1,16 +1,18 @@ +{{ with .Site.Params.disqusShortname }} <div id="post-comment"> <div id="disqus_thread"></div> <script> var disqus_config = function () { - this.page.url = "{{ .Permalink }}"; - this.page.identifier = "{{ .RelPermalink }}"; + this.page.url = "{{ $.Permalink }}"; + this.page.identifier = "{{ $.RelPermalink }}"; }; (function () { var d = document, s = d.createElement('script'); - s.src = 'https://{{ .Site.Params.disqusShortname }}.disqus.com/embed.js'; + s.src = 'https://{{ . }}.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })(); </script> -</div>
\ No newline at end of file +</div> +{{ end }}
\ No newline at end of file |