diff --git a/aio/content/marketing/index.html b/aio/content/marketing/index.html index afd6ef06117..362a272349a 100755 --- a/aio/content/marketing/index.html +++ b/aio/content/marketing/index.html @@ -1,10 +1,10 @@ - +
- +
- +
@@ -12,31 +12,33 @@ - +
- -
One framework.
Mobile & desktop.
Get Started -
-
+ +
+
+ +

+
- +

Join us at our newest event, October 2017

Learn More -
+
- +
@@ -53,7 +55,8 @@

- + +
@@ -71,7 +74,7 @@

- +
IDE example
@@ -88,9 +91,8 @@

- +
-
Loved by Millions
@@ -105,20 +107,19 @@
- - -
+
diff --git a/aio/tools/transforms/angular-base-package/post-processors/h1-checker.js b/aio/tools/transforms/angular-base-package/post-processors/h1-checker.js index 7b0200e1048..d54c5b4880b 100644 --- a/aio/tools/transforms/angular-base-package/post-processors/h1-checker.js +++ b/aio/tools/transforms/angular-base-package/post-processors/h1-checker.js @@ -34,5 +34,5 @@ function getText(h1) { (node.properties.ariaHidden === 'true' || node.properties['aria-hidden'] === 'true') )); - return toString(cleaned); -} \ No newline at end of file + return cleaned ? toString(cleaned) : ''; +} diff --git a/aio/tools/transforms/angular-base-package/post-processors/h1-checker.spec.js b/aio/tools/transforms/angular-base-package/post-processors/h1-checker.spec.js index ff16a4b4ffb..22443afcdd9 100644 --- a/aio/tools/transforms/angular-base-package/post-processors/h1-checker.spec.js +++ b/aio/tools/transforms/angular-base-package/post-processors/h1-checker.spec.js @@ -69,4 +69,14 @@ describe('h1Checker postprocessor', () => { processor.$process([doc]); expect(doc.vFile.title).toEqual('What is Angular?'); }); -}); \ No newline at end of file + + it('should not break if the h1 is empty (except for an aria-hidden anchor)', () => { + const doc = { + docType: 'a', + renderedContent: ` +

+ ` + }; + expect(() => processor.$process([doc])).not.toThrow(); + }); +});