-
Notifications
You must be signed in to change notification settings - Fork 470
/
Copy pathhead.html
executable file
·163 lines (150 loc) · 9.35 KB
/
head.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<meta charset="utf-8" prefix="og: https://ogp.me/ns#">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{% if page.summary %}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
<meta name="keywords" content="{% if page.tags %}{{ page.tags | join: ', ' | escape }}{% endif %}">
{%- assign dev_path = "/" | append: site.versions["dev"] | append: "/" -%}
{%- assign stable_path = "/" | append: site.versions["stable"] | append: "/" %}
{% assign asst_supp_exp_date = site.data.versions | where_exp: "m", "m.major_version == page.version.version" | map: "asst_supp_exp_date" | first | date: "%s" -%}{%- comment -%} This line queries the information in versions.csv and returns the current page's version. {%- endcomment -%}
{%- assign page_url = page.url | replace: ".html", "" | replace: stable_path, "/stable/" | replace: dev_path, "/dev/" -%}
{%- assign expired = false -%}
{%- assign today = "today" | date: "%s" -%}
{%- if page.version and asst_supp_exp_date < today -%}
{%- assign expired = true -%}
{%- endif -%}
{%- if page.seo_noindex == true or page_url != page.canonical or expired == true -%}{%- comment -%} If the page version exists and the assistance support expiration date has passed, include the additional meta tags {%- endcomment -%}
{%- unless page.seo_index == true -%}
<meta name="robots" content="noindex, nofollow, noarchive, nocache">
{%- endunless -%}
{% endif -%}
{%- comment -%} The below if block helps prove ownership of the cockroachlabs.com/docs website for Google Search Console. {%- endcomment -%}
{%- if page.layout == "homepage" %}
<meta name="google-site-verification" content="Du_z8l1I9HPqQS022xQn6UTRhDWYQRJZchcoUhYfQaM" /> {% comment %} Nick Vigilante {% endcomment %}
<meta name="google-site-verification" content="xIjIKHNh-szz0m5JilyA4IriUmVD5DxeYBE18xSqvZY" /> {% comment %} Joe Nickdow {% endcomment %}
<meta name="google-site-verification" content="tJzwad6zE43z3_4uoZ8Jx4iquB66Kpt5zcK6yxNXg_A" /> {% comment %} Dan Kelly {% endcomment %}
{%- endif -%}
{%- comment -%} Open Graph data {%- endcomment %}
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ site.main_url | append: site.baseurl | append: page.canonical | replace: stable_path, "/stable/" | replace: dev_path, "/dev/" }}" />
<meta property="og:image" content="{% if page.image_url %}{{ page.image_url }}{% else %}https://www.cockroachlabs.com/img/crl-socialpost-default-2020-2.jpg?auto=format,compress{% endif %}" />
<meta property="og:site_name" content="{{ site.site_title }}" />
{% if page.summary %}<meta property="og:description" content="{{ page.summary | strip_html | strip_newlines | truncate: 160 }}">{% endif %}
{% if page.video_url %}<meta property="og:video" content="{{ page.video_url }}" />{% endif %}
{% comment %} Google structured content/rich results {% endcomment %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "{{ page.title | replace: '"', '\"' }}",
"image": "{% if page.image_url %}{{ page.image_url }}{% else %}https://www.cockroachlabs.com/img/crl-socialpost-default-2020-2.jpg?auto=format,compress{% endif %}",
{% if page.summary %}"description": "{{ page.summary | strip_html | strip_newlines | truncate: 160 | replace: '"', '\"' }}",{% endif %}
"author": {
"@type": "Organization",
"name": "Cockroach Labs Documentation Team",
"url": "https://github.com/cockroachdb/docs"
}
}
</script>
{% comment %} Favicons {% endcomment %}
<link rel="icon" type="image/png" href="https://crl2020.imgix.net/img/crl-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://crl2020.imgix.net/img/crl-32x32.png?w=16h=16" sizes="16x16">
<title>{{ page.title }}</title>
<link rel="canonical" href="{{ site.main_url | append: site.baseurl | append: page.canonical | replace: stable_path, "/stable/" | replace: dev_path, "/dev/" }}">
{% if page.comparison == true %}<link rel="stylesheet" type="text/css" href="{{ 'css/select2.min.css' | relative_url }}">{% endif %}
{% include_cached corestyles.css.html %}
<link rel="preload" href="{{ 'css/customstyles.css' | relative_url }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="{{ 'css/customstyles.css' | relative_url }}"></noscript>
<script>
var pageConfig = {
tocNotNested: {% if page.toc_not_nested %}true{% else %}false{% endif %}
};
</script>
<script>
function whenAvailable(name, callback, isJqueryFn = false) {
var interval = 500; // ms
var evaluation = isJqueryFn ? $()[name] : window[name];
window.setTimeout(function() {
if (evaluation) {
callback();
} else {
whenAvailable(name, callback, isJqueryFn);
}
}, interval);
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
{%- comment -%} Add the Brand Website segment source and fire a page impression. {%- endcomment -%}
<script>
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="Mz68FzJ2r4poMQ4bQTniyvZF9yF0ycET";;analytics.SNIPPET_VERSION="4.15.3";
analytics.load("Mz68FzJ2r4poMQ4bQTniyvZF9yF0ycET", {
user: {
cookie: {
key: "crl_brand_ajs_user_id",
oldKey: "crl_brand_ajs_user",
},
localStorage: {
key: "crl_brand_ajs_user_traits",
},
},
group: {
cookie: {
key: "crl_brand_ajs_group_id",
},
localStorage: {
key: "crl_brand_ajs_group_properties",
}
}
});
analytics.page();
}}();
</script>
{% if page.comparison == true %}
<script src="{{ 'js/comparison-chart.js' | relative_url }}"></script>
<script src="{{ 'js/select2.min.js' | relative_url }}"></script>
{% endif %}
{% if page.license == true %}
<script src="{{ 'js/license-on-page.js' | relative_url }}"></script>
{% endif %}
<link rel="preconnect dns-prefetch" href="https://go.cockroachlabs.com" />
<link rel="preconnect dns-prefetch" href="https://cockroach-labs-docs.imgix.net" />
<link rel="preload" href="https://go.cockroachlabs.com/js/forms2/js/forms2.min.js" as="script" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Source+Code+Pro&family=Source+Sans+Pro:wght@300;400;600;700&display=swap" rel="stylesheet">
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Source+Code+Pro&family=Source+Sans+Pro:wght@300;400;600;700&display=swap"></noscript>
<link rel="preconnect dns-prefetch" href="https://app.convertflow.co/" >
<link rel="preconnect dns-prefetch" href="https://js.convertflow.co/" data-proofer-ignore>
<link rel="preload" as="image" href="https://cockroach-labs-docs.imgix.net/bg-3-1.png?auto=format,compress&w=1200&q=40" />
<link rel="preload" as="image" href="https://cockroach-labs-docs.imgix.net/bg-early-3-1.png?auto=format,compress&w=1200&q=40" />
<script>
console.log(1);
(function() {
let k = window.Kapa;
if (!k) {
let i = function() { i.c(arguments) };
i.q = [];
i.c = function(args) { i.q.push(args) };
window.Kapa = i;
}
})();
console.log(2);
</script>
<script
src="https://widget.kapa.ai/kapa-widget.bundle.js"
data-website-id="98d1a919-dfd3-4d54-a8a0-58c9094f57e5"
data-project-name="CockroachDB"
data-project-color="#6933FF"
data-project-logo="https://upload.wikimedia.org/wikipedia/en/3/31/Cockroach_Labs_Logo.png"
data-kapa-branding-hide="true"
data-modal-title="CockroachDB AI"
data-modal-disclaimer="This AI bot is experimental. Don't rely on it for production workloads. Always consult the official CockroachDB documentation. Interactions with this AI bot may be monitored or recorded, and your use of the AI bot is subject to the Cockroach Labs' [Terms of Use](https://www.cockroachlabs.com/website-terms-of-use/) and [Privacy policy](https://www.cockroachlabs.com/privacy/)."
></script>
<style>
.mantine-Modal-content {
margin-top: 80px !important; /* Ensures the modal has enough top margin */
}
.mantine-Modal-content {
max-height: calc(75vh); /* Limits the modal's height to 75% of the viewport height */
}
</style>