Skip to content

Commit

Permalink
Merge pull request #390 from sboukortt/deprecation
Browse files Browse the repository at this point in the history
Fix use of deprecated symbols
  • Loading branch information
shaform committed Sep 4, 2024
2 parents 6bef93b + 331f526 commit 64e3763
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{- end }}

<!-- Disqus -->
{{- if .Site.DisqusShortname -}}
{{- if .Site.Config.Services.Disqus.Shortname -}}
{{ partial "comments/disqus.html" . }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/comments/disqus.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if (window.location.hostname === 'localhost') return;

var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var disqus_shortname = '{{ .Site.DisqusShortname }}';
var disqus_shortname = '{{ .Site.Config.Services.Disqus.Shortname }}';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<![endif]-->` | safeHTML }}

<!-- Analytics -->
{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{- if and (not hugo.IsServer) .Site.Config.Services.GoogleAnalytics.ID -}}
{{ template "_internal/google_analytics.html" . }}
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
{{ end }}

{{ if .Site.Params.commentCount.disqus.enable }}
<script id="dsq-count-scr" src="//{{ .Site.DisqusShortname }}.disqus.com/count.js" async></script>
<script id="dsq-count-scr" src="//{{ .Site.Config.Services.Disqus.Shortname }}.disqus.com/count.js" async></script>
{{ end }}

{{ if and .Site.Params.remark42Url (or .Page.IsPage .IsHome) }}
Expand Down

0 comments on commit 64e3763

Please sign in to comment.