Skip to content

Commit 3ec80a7

Browse files
✨ Support for Agastya & GA
1 parent 700936f commit 3ec80a7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@staart/site",
3-
"version": "0.9.27",
3+
"version": "0.9.28",
44
"main": "dist/index.js",
55
"repository": "[email protected]:staart/site",
66
"author": "Anand Chowdhary <[email protected]>",

src/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ <h1>{{ title }}</h1>
3939
<div>
4040
<span>&copy; {{ year }}{{#if author}} {{{ author }}}{{/if}}</span>
4141
<span><a href="/sitemap.html">Sitemap</a></span>
42+
{{#if agastyaApiKey}}<span><button onclick="window.agastya.open()">Accessibility</button></span>{{/if}}
4243
<span>This site is
4344
{{#if githubUrl}}<a
4445
href="{{ githubUrl }}"
@@ -47,6 +48,19 @@ <h1>{{ title }}</h1>
4748
>open source</a>, {{/if}} built with <a href="https://staart.js.org/site" target="_blank" rel="noopener">Staart Site</a></span>
4849
</div>
4950
</footer>
51+
{{#if agastyaApiKey}}<script src="https://platform-beta.oswaldlabs.com/v1/agastya/load/{{agastyaApiKey}}"></script>
52+
<script>
53+
window.a11ySettings = window.a11ySettings || {};
54+
window.a11ySettings.variables = window.a11ySettings.variables || {};
55+
window.a11ySettings.variables.displayNone = true;
56+
</script>{{/if}}
57+
{{#if googleAnalytics}}<script async src="https://www.googletagmanager.com/gtag/js?id={{googleAnalytics}}"></script>
58+
<script>
59+
window.dataLayer = window.dataLayer || [];
60+
function gtag(){dataLayer.push(arguments);}
61+
gtag("js", new Date());
62+
gtag("config", "{{googleAnalytics}}");
63+
</script>{{/if}}
5064
<script type="application/ld+json">
5165
{
5266
"@context": "https://schema.org",

0 commit comments

Comments
 (0)