File tree Expand file tree Collapse file tree 2 files changed +7
-33
lines changed Expand file tree Collapse file tree 2 files changed +7
-33
lines changed Original file line number Diff line number Diff line change 89
89
90
90
< / script>
91
91
92
-
93
- < script>
94
- // commenting out till IE 11 is polyfilled w/ this
95
- {# var urlParams = new URLSearchParams (window .location .search );
96
-
97
- var allAssets = {{ allAssets| json_encode () }};
98
-
99
- if (urlParams .has (' lang' )){
100
-
101
- var langSelected = urlParams .get (' lang' );
102
-
103
- var globalJS = allAssets[langSelected][' bolt-global.js' ];
104
- var globalCSS = allAssets[langSelected][' bolt-global.css' ];
105
-
106
- loadCSS (globalCSS);
107
- } #}
108
- < / script>
109
-
110
92
< / head>
111
93
< body class = " storefront-docs c-bolt-site {% if currentUrl == 'index.html' %} t-bolt-dark {% endif %} storefront-docs--{{ urlChunks | length >= 2 ? urlChunks|first : 'parent' }}" >
112
94
95
+ {% set homeTitle % }
96
+ < span id= " js-bolt-test-bds-home-title" > Bolt Design System< / span>
97
+ {% endset % }
98
+
113
99
{% embed " @bolt-components-sticky/sticky.twig" % }
114
100
{% block sticky_content % }
115
101
{% include " @bolt-components-navbar/navbar.twig" with {
116
102
theme: " xdark" ,
117
103
title: {
118
- tag: " h2 " ,
119
- text: " Bolt Design System " ,
104
+ tag: " h1 " ,
105
+ text: homeTitle
120
106
},
121
107
links: [
122
108
{
141
127
142
128
{{ content }}
143
129
144
- {# Shows Twig Vars in Browser Console #}
145
- {% if not bolt .data .config .prod % }
146
- {# < script type= " application/json" > {{ _context| json_encode ()| raw }}< / script>
147
- < script>
148
- (function () {
149
- var me = document .currentScript ;
150
- var jsonScriptTag = me .previousElementSibling .innerHTML ;
151
- var data = JSON .parse (jsonScriptTag);
152
- console .log (' Twig vars for this page: ' , data);
153
- })();
154
- < / script> #}
155
- {% endif % }
156
130
< script src= " {{ assets[" bolt- global .js " ] | default(" / build/ bolt- global .js " ) }}" async >< / script>
157
131
< / body>
158
132
< / html>
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ module.exports = {
76
76
browser
77
77
. url ( `${ testingUrl } ` )
78
78
. waitForElementVisible ( 'body.c-bolt-site' , 1000 )
79
- . assert . containsText ( 'h1.c -bolt-headline ' , 'Bolt Design System' )
79
+ . assert . containsText ( 'h1#js -bolt-test-bds-home-title ' , 'Bolt Design System' )
80
80
. end ( )
81
81
} ,
82
82
You can’t perform that action at this time.
0 commit comments