Skip to content

Commit

Permalink
Address .Site.DisqusShortname param deprecation warning (#1895)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Mar 14, 2024
1 parent 5fddc02 commit c8fe4f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>
{{ .Content }}
{{ partial "section-index.html" . -}}
{{ partial "feedback.html" . -}}
{{ if (.Site.DisqusShortname) -}}
{{ if (.Site.Config.Services.Disqus.Shortname) -}}
<br />
{{- partial "disqus-comment.html" . -}}
{{ end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/disqus-comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://' + {{ .Site.DisqusShortname }} + '.disqus.com/embed.js';
s.src = 'https://' + {{ .Site.Config.Services.Disqus.Shortname }} + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
Expand Down
2 changes: 1 addition & 1 deletion layouts/swagger/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>
{{ .Content }}
{{ partial "section-index.html" . -}}
{{ partial "feedback.html" . -}}
{{ if (.Site.DisqusShortname) -}}
{{ if (.Site.Config.Services.Disqus.Shortname) -}}
<br />
{{ partial "disqus-comment.html" . -}}
{{ end -}}
Expand Down

0 comments on commit c8fe4f1

Please sign in to comment.