Skip to content

Commit 2c07c6f

Browse files
committed
feat(daffio): add schema to homepage (#3378)
1 parent 15e6dd9 commit 2c07c6f

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

apps/daffio/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@daffodil/docs-utils": "0.0.0-PLACEHOLDER",
3737
"@daffodil/design": "0.0.0-PLACEHOLDER",
3838
"@daffodil/router": "0.0.0-PLACEHOLDER",
39+
"@daffodil/seo": "0.0.0-PLACEHOLDER",
3940
"@daffodil/tools-dgeni": "0.0.0-PLACEHOLDER",
4041
"@daffodil/theme-switch": "0.0.0-PLACEHOLDER",
4142
"@ngrx/component": "0.0.0-PLACEHOLDER"

apps/daffio/src/app/app.module.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { StoreDevtoolsModule } from '@ngrx/store-devtools';
1919

2020
import { DAFF_THEME_INITIALIZER } from '@daffodil/design';
2121
import { provideDaffRouterActivatedRoute } from '@daffodil/router';
22+
import { provideDaffSeoRouterSchema } from '@daffodil/seo/router';
2223

2324
import { AppRoutingModule } from './app-routing.module';
2425
import { DaffioAppComponent } from './app.component';
@@ -63,6 +64,7 @@ bootstrap: [
6364
useValue: 'serverApp',
6465
},
6566
provideDaffRouterActivatedRoute(),
67+
provideDaffSeoRouterSchema(),
6668
provideHttpClient(withInterceptorsFromDi()),
6769
] })
6870
export class AppModule {}

apps/daffio/src/app/content/home/home-routing.module.ts

+13
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ const homepage: Routes = [
1414
data: {
1515
title: 'Modern front-end development toolkit for ecommerce PWAs',
1616
description: 'Build your store with ease and flexibility — take advantage of the cutting edge with Angular (6+), Redux and Progressive Web Apps.',
17+
daffSeoData: {
18+
schema: {
19+
'@context': 'https://schema.org',
20+
'@type': 'Organization',
21+
url: 'https://www.daff.io',
22+
sameAs: ['https://www.linkedin.com/company/daffodil-pwa/', 'https://github.com/graycoreio/daffodil'],
23+
logo: 'https://www.daff.io/assets/appicons/icon-512x512.png',
24+
name: 'Daffodil',
25+
description: 'A Modern front-end development toolkit for ecommerce PWAs',
26+
27+
telephone: '+1-513-394-7356',
28+
},
29+
},
1730
},
1831
},
1932
];

0 commit comments

Comments
 (0)