Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics Update #321

Merged
merged 2 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter/slim@v6
uses: super-linter/super-linter/slim@v6
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
FORCE_COLOR: 2
NODE: 16
NODE: 20

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
3 changes: 0 additions & 3 deletions layouts/partials/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@
gtag('js', new Date());
gtag('config', '{{ .Site.GoogleAnalytics }}', {ad_storage:"denied", analytics_storage:"denied"});
</script>

<script id="plausible" defer data-domain="devguide.trimble.com"
src="https://plausible.io/js/script.outbound-links.js" fetchpriority="low"></script>
{{- end -}}
15 changes: 11 additions & 4 deletions layouts/partials/menu-right.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<script>
$(function() {
jQuery('#TableOfContents ul').addClass('list-unstyled pl-0 ml-0');
jQuery('#TableOfContents a').addClass('nav-link');
});
document.addEventListener("DOMContentLoaded", function() {
var ulElements = document.querySelectorAll('#TableOfContents ul');
ulElements.forEach(function(element) {
element.classList.add('list-unstyled', 'pl-0', 'ml-0');
});

var aElements = document.querySelectorAll('#TableOfContents a');
aElements.forEach(function(element) {
element.classList.add('nav-link');
});
});
</script>
<div class="sticky-top sticky-offset">
<div class="h5 pt-2 ml-3">
Expand Down
7 changes: 3 additions & 4 deletions layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

<!-- OpenGraph Meta tags using Hugo's own built-in template -->
{{ template "_internal/opengraph.html" . }}
<meta property="og:locale" content="en_US">

<!-- no need to define additional Twitter card meta tags as fallback to OpenGraph -->
<!-- https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#twitter-cards-and-open-graph -->
Expand All @@ -36,9 +35,9 @@

{{- if not .Params.hideSearch -}}
<script>
$(function () {
$("#search-by").attr('title', '');
});
document.addEventListener("DOMContentLoaded", function() {
document.getElementById("search-by").setAttribute('title', '');
});
</script>

<script>
Expand Down
Loading
Loading