Skip to content
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
Binary file modified build/ui-bundle.zip
Binary file not shown.
3 changes: 1 addition & 2 deletions src/helpers/increment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
'use strict'

module.exports = (value) => (value || 0) + 1
module.exports = (value) => (parseInt(value, 10) || 0) + 1
2 changes: 2 additions & 0 deletions src/helpers/json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict'
module.exports = (value) => JSON.stringify(value == null ? '' : value)
1 change: 0 additions & 1 deletion src/partials/body.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{{> nav}}
{{> main}}
{{> consent}}
</div>
46 changes: 0 additions & 46 deletions src/partials/consent.hbs

This file was deleted.

35 changes: 22 additions & 13 deletions src/partials/head-meta.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{{!-- Add additional meta tags here --}}
<!-- Google Consent Mode v2 default (must load BEFORE GTM) -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied',
'functionality_storage': 'granted',
'security_storage': 'granted',
'wait_for_update': 500
});
</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],
Expand All @@ -7,21 +21,16 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
})(window,document,'script','dataLayer','GTM-PXZZ7SP');</script>
<!-- End Google Tag Manager -->

<!-- Global site tag (gtag.js) - Google Analytics -->
{{!-- <script async src="https://www.googletagmanager.com/gtag/js?id=G-1LVRWGMQK4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-1LVRWGMQK4');
</script> --}}
<!-- End Google Tag Manager -->

<meta property="og:title" content="{{#with (or page.attributes.ogtitle page.title) }}{{{detag this}}}{{/with}} - {{#with page.component.title}}{{{detag this}}}{{/with}}" />
<meta property="og:image" href="{{{uiRootPath}}}/img/og-image.png" content="https://i.ibb.co/7bkxZJW/og-image.png">
<meta property="og:image" content="https://www.tigergraph.com/docs/_/img/og-image.png">
<meta property="og:image:secure_url" content="https://www.tigergraph.com/docs/_/img/og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="TigerGraph Logo against an orange gradient background">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://www.tigergraph.com/docs/_/img/og-image.png">
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.tigergraph.com/docs/{{ page.url }}">
<meta property="og:url" content="{{{page.canonicalUrl}}}">
{{#with (or page.description 'The Only Scalable Platform for Analytics and ML on Connected Data') }}
<meta property="og:description" content="{{this}}">
{{/with}}
Expand Down
49 changes: 49 additions & 0 deletions src/partials/head-schema.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{#if page.canonicalUrl}}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"headline": {{{json (detag page.title)}}},
"description": {{{json (or page.description 'TigerGraph product documentation.')}}},
"url": {{{json page.canonicalUrl}}},
"mainEntityOfPage": {{{json page.canonicalUrl}}},
"inLanguage": "en",
"isPartOf": {
"@type": "WebSite",
"name": "TigerGraph Documentation",
"url": "https://www.tigergraph.com/docs/"
},
"author": {
"@type": "Organization",
"name": "TigerGraph",
"url": "https://www.tigergraph.com/"
},
"publisher": {
"@type": "Organization",
"name": "TigerGraph",
"url": "https://www.tigergraph.com/",
"logo": {
"@type": "ImageObject",
"url": "https://www.tigergraph.com/wp-content/uploads/2021/09/TigerGraph-Logo.svg"
}
}{{#if page.component.title}},
"about": {{{json (detag page.component.title)}}}{{/if}}
}{{#if page.breadcrumbs}},
{
"@type": "BreadcrumbList",
"itemListElement": [
{{#each page.breadcrumbs}}{
"@type": "ListItem",
"position": {{increment @index}},
"name": {{{json (detag this.content)}}}{{#if this.url}},
"item": "{{@root.site.url}}{{this.url}}"{{/if}}
}{{#unless @last}},{{/unless}}
{{/each}}
]
}{{/if}}
]
}
</script>
{{/if}}
4 changes: 0 additions & 4 deletions src/partials/head-scripts.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
</script>
<script>var uiRootPath = '{{{uiRootPath}}}'</script>
<link rel="preconnect" href="https://CTOKZGN7YQ-dsn.algolia.net" crossorigin />
1 change: 1 addition & 0 deletions src/partials/head.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
{{> head-info}}
{{> head-styles}}
{{> head-meta}}
{{> head-schema}}
{{> head-scripts}}
{{> head-icons}}
76 changes: 0 additions & 76 deletions src/partials/nav-explore.hbs.backup

This file was deleted.

8 changes: 0 additions & 8 deletions src/partials/nav.hbs.backup

This file was deleted.

12 changes: 0 additions & 12 deletions src/partials/page-versions.hbs.backup

This file was deleted.