Skip to content

Commit

Permalink
Fixes two deprecated config names used in our theme
Browse files Browse the repository at this point in the history
Newer versions of hugo fail to build the page with the old config options used in our theme.
  • Loading branch information
maxkratz committed Sep 18, 2024
1 parent 7398562 commit 81ade4c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/partials/disqus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ $ctx := . }}
{{ with $.Site.Config.Services.Disqus.Shortname }}
{{ if ne . "yourdiscussshortname" }}
{{ template "_internal/disqus.html" $ctx }}
{{ end }}
{{ end }}
10 changes: 10 additions & 0 deletions layouts/partials/google-analytics-async.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ if not hugo.IsServer }}
{{ with $.Site.GoogleAnalytics }}
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ . }}', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
{{ end }}
{{ end }}

0 comments on commit 81ade4c

Please sign in to comment.