File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ module . exports = ( searchValue , start , ignoreCase = false ) => {
4
+ if ( ! searchValue || ! start ) return false
5
+ if ( ignoreCase && typeof searchValue === 'string' && typeof start === 'string' ) {
6
+ searchValue = searchValue . toLowerCase ( )
7
+ start = start . toLowerCase ( )
8
+ }
9
+ return start . includes ( searchValue )
10
+ }
Original file line number Diff line number Diff line change 10
10
<meta property =" og:site_name" content =" DataStax Documentation" >
11
11
<meta property =" og:type" content =" article" >
12
12
<meta property =" og:url" content =" {{ page.canonicalUrl }} " >
13
- <meta property =" og:title" content =" {{ page.title }} :: {{ site. title}} " >
13
+ <meta property =" og:title" content =" {{> head- title}} " >
14
14
<meta property =" og:description" content =" {{ page.description }} " >
15
15
<meta property =" og:image" content =" {{{ site.url }}}{{{ site.ui.url }}} /img/datastax-docs-banner.png" >
16
16
<meta property =" og:image:type" content =" image/png" >
22
22
<meta name =" twitter:site" content =" @datastax" >
23
23
<meta name =" twitter:creator" content =" @datastax" >
24
24
<meta name =" twitter:url" content =" {{ page.canonicalUrl }} " >
25
- <meta name =" twitter:title" content =" {{ page.title }} :: {{ site. title}} " >
25
+ <meta name =" twitter:title" content =" {{> head- title}} " >
26
26
<meta name =" twitter:description" content =" {{ page.description }} " >
27
27
<meta name =" twitter:image" content =" {{{ site.url }}}{{{ site.ui.url }}} /img/datastax-docs-banner.png" >
28
28
<script type =" application/ld+json" >
Original file line number Diff line number Diff line change 1
- < title > {{{ detag ( or page.title defaultPageTitle )}}} {{ #with site.title }} :: {{ this }} {{ /with }} </ title >
1
+ {{{ detag ( or page.title defaultPageTitle ) }}} {{ #with page.component. title}}{{ #if ( not ( includes this ( or ../ page.title ../ defaultPageTitle ) true )) }} | {{ this }} {{ /if }}{{ /with }} {{ #with site.title }} | {{ this }} {{ /with }}
Original file line number Diff line number Diff line change 1
1
2
2
{{> head-prelude }}
3
- {{> head-title }}
3
+ < title > {{> head-title }} </ title >
4
4
{{> head-info }}
5
5
{{> head-styles }}
6
6
{{> head-meta }}
You can’t perform that action at this time.
0 commit comments