Compare commits

...

2 Commits

Author SHA1 Message Date
542aef157a
release: v1.7.0
Some checks failed
Node.js CI / Lint and Test (push) Successful in 1m18s
Code Analysis / SonarQube (push) Failing after 1m26s
2025-05-30 21:05:18 -07:00
2e72c34c2d
feat: include google ads snippet 2025-05-30 21:04:38 -07:00
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "website-headers",
"version": "1.6.0",
"version": "1.7.0",
"description": "",
"main": "index.js",
"type": "module",

View File

@ -42,7 +42,7 @@ openGraphDescription.setAttribute("property", "og:description");
openGraphDescription.setAttribute(
"content",
description?.getAttribute("content")
// eslint-disable-next-line stylistic/max-len
// eslint-disable-next-line stylistic/max-len -- big boi string
?? "We are a software engineering and community management consulting firm.",
);
const openGraphImage = document.createElement("meta");
@ -75,7 +75,7 @@ twitterDescription.setAttribute("name", "twitter:description");
twitterDescription.setAttribute(
"content",
description?.getAttribute("content")
// eslint-disable-next-line stylistic/max-len
// eslint-disable-next-line stylistic/max-len -- big boi string
?? "We are a software engineering and community management consulting firm.",
);
const twitterImage = document.createElement("meta");
@ -309,6 +309,12 @@ function() {
(window.plausible.q = window.plausible.q ?? []).push(arguments)
}
`;
const googleAdsense = document.createElement("script");
googleAdsense.async = true;
googleAdsense.src
// eslint-disable-next-line stylistic/max-len -- big boi string
= "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3569924701890974";
googleAdsense.setAttribute("crossorigin", "anonymous");
// #endregion
@ -337,6 +343,7 @@ head?.appendChild(treeNation);
head?.appendChild(fontAwesome);
head?.appendChild(analytics);
head?.appendChild(analytics2);
head?.appendChild(googleAdsense);
body?.appendChild(footer);
body?.appendChild(treeNationBottom);