Skip to content

Commit

Permalink
Merge branch 'ScottLogic:gh-pages' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dogle-scottlogic committed Jan 3, 2024
2 parents 994167a + 1bb70b7 commit db1e2d4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 64 deletions.
24 changes: 14 additions & 10 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,20 @@

{% comment %} Only load analytics when on the main repo; it will fail to load on the forks {% endcomment %}
{% if site.github.owner_name == 'ScottLogic' %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-262131-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MMXGQRL');</script>
<!-- End Google Tag Manager -->

Paste this code immediately after the opening <body> tag:

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MMXGQRL"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
<script>
(function(d) {
Expand All @@ -79,7 +84,6 @@
<script>
initialiseMenu();
loadClapCount();
loadGTM();
</script>

{% if page.paginated %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: A Journey into WASM
date: 2024-01-02 09:00:00 Z
date: 2024-01-03 09:00:00 Z
categories:
- Tech
tags:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"remove-unused-images": "node scripts/images/remove-images.js",
"spellcheck": "mdspell \"**/ceberhardt/_posts/*.md\" --en-gb -a -n -x -t",
"style": "sass --no-source-map --style=compressed scss/style.scss style.css",
"scripts": "uglifyjs scripts/initialise-menu.js scripts/jquery-1.9.1.js scripts/jquery.jscroll-2.2.4.js scripts/load-clap-count.js scripts/elapsed.js scripts/graft-studio/header-scroll.js scripts/graft-studio/jquery.mmenu.all.js scripts/graft-studio/jquery.matchHeight.js scripts/load-google-tag-manager.js node_modules/applause-button/dist/applause-button.js node_modules/cookieconsent/build/cookieconsent.min.js -o script.js"
"scripts": "uglifyjs scripts/initialise-menu.js scripts/jquery-1.9.1.js scripts/jquery.jscroll-2.2.4.js scripts/load-clap-count.js scripts/elapsed.js scripts/graft-studio/header-scroll.js scripts/graft-studio/jquery.mmenu.all.js scripts/graft-studio/jquery.matchHeight.js node_modules/applause-button/dist/applause-button.js node_modules/cookieconsent/build/cookieconsent.min.js -o script.js"
},
"homepage": "http://blog.scottlogic.com",
"private": true
Expand Down
6 changes: 3 additions & 3 deletions script.js

Large diffs are not rendered by default.

49 changes: 0 additions & 49 deletions scripts/load-google-tag-manager.js

This file was deleted.

0 comments on commit db1e2d4

Please sign in to comment.