Skip to content

Commit

Permalink
Remove social buttons and analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
msimonides committed Mar 16, 2024
1 parent ce3b2f0 commit 66b2531
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion _includes/ga.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if (window.console && typeof(console.log) == 'function')
console.log('ga("' + args.join('", "') + '")');
}
{% else %}
{% else if site.enable_ga %}
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
Expand All @@ -19,6 +19,9 @@
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
{% else %}
var _paq = function() {
}
{% endif %}

function gaLinkClick(label) {
Expand Down
5 changes: 1 addition & 4 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ <h1>{{ page.heading }}</h1>
</div>
</div>
</header>
<div class="container content-below-header">
{% include social-row.html %}
</div>

<div class="container content">
{{ content }}
</div>

{% include footer.html %}
{% include footer.html %}
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,5 @@ <h1>{{ page.title }}</h1>
</ul>
</div>

{% include social-row.html %}

</div>
</div>

0 comments on commit 66b2531

Please sign in to comment.