Skip to content

Commit 03932ac

Browse files
authored
Merge pull request #1513 from bookernath/whitespace
Clean up whitespace in layout/base.html
2 parents fcfff36 + e1502b7 commit 03932ac

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Draft
44
- Update license year [#1510](https://github.com/bigcommerce/cornerstone/pull/1510)
55
- Remove Node 6 from Travis [#1511](https://github.com/bigcommerce/cornerstone/pull/1511)
6+
- Clean up whitespace in <head> [#1513](https://github.com/bigcommerce/cornerstone/pull/1513)
67

78
## 3.4.4 (2019-05-23)
89
- Fix to PDP Product Reviews Link Not Clickable. [#1498](https://github.com/bigcommerce/cornerstone/pull/1498)

templates/layout/base.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
1212

1313
<script>
14-
// Change document class from no-js to js so we can detect this in css
14+
{{!-- Change document class from no-js to js so we can detect this in css --}}
1515
document.documentElement.className = document.documentElement.className.replace('no-js', 'js');
1616
</script>
1717

@@ -21,18 +21,18 @@
2121
{{{head.scripts}}}
2222
{{{head.rsslinks}}}
2323

24-
{{inject 'themeSettings' theme_settings}}
25-
{{inject 'genericError' (lang 'common.generic_error')}}
26-
{{inject 'maintenanceMode' settings.maintenance}}
27-
{{inject 'urls' urls}}
28-
{{inject 'secureBaseUrl' settings.secure_base_url}}
29-
{{inject 'cartId' cart_id}}
30-
{{inject 'template' template}}
24+
{{~inject 'themeSettings' theme_settings}}
25+
{{~inject 'genericError' (lang 'common.generic_error')}}
26+
{{~inject 'maintenanceMode' settings.maintenance}}
27+
{{~inject 'urls' urls}}
28+
{{~inject 'secureBaseUrl' settings.secure_base_url}}
29+
{{~inject 'cartId' cart_id}}
30+
{{~inject 'template' template}}
3131
</head>
3232
<body>
3333
<svg data-src="{{cdn 'img/icon-sprite.svg'}}" class="icons-svg-sprite"></svg>
3434

35-
{{#and settings.privacy_cookie settings.is_eu_ip_address}}
35+
{{~#and settings.privacy_cookie settings.is_eu_ip_address}}
3636
{{> components/common/cookie}}
3737
{{/and}}
3838

@@ -43,7 +43,7 @@
4343
<script>window.__webpack_public_path__ = "{{cdn 'assets/dist/'}}";</script>
4444
<script src="{{cdn 'assets/dist/theme-bundle.main.js'}}"></script>
4545
<script>
46-
// Exported in app.js
46+
{{!-- Exported in app.js --}}
4747
window.stencilBootstrap("{{page_type}}", {{jsContext}}).load();
4848
</script>
4949

0 commit comments

Comments
 (0)