Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4f1bf3

Browse files
docs: add meta tags
* fix: meta tags for docusaurus * fix: slogan change, code polishing
1 parent 507c32e commit d4f1bf3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

apps/docs/docusaurus.config.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
77
const organizationName = 'rx-angular';
88
const projectName = 'rx-angular';
99
const title = 'RxAngular';
10+
const description =
11+
'RxAngular offers a comprehensive toolset for handling fully reactive Angular applications with the main focus on runtime performance and template rendering.';
1012
const url = 'https://rx-angular.io';
13+
const logo = 'https://www.rx-angular.io/img/logo.png';
1114

1215
const googleTrackingId = 'UA-180240379-1';
1316

@@ -72,6 +75,41 @@ module.exports = {
7275
themeConfig:
7376
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
7477
({
78+
metadata: [
79+
{
80+
name: 'description',
81+
content: description,
82+
},
83+
{
84+
property: 'og:title',
85+
content: title,
86+
},
87+
/** @type {*} - website | profile | article | product */
88+
{
89+
property: 'og:type',
90+
content: 'website',
91+
},
92+
{ property: 'og:url', content: url },
93+
{ property: 'og:image', content: logo },
94+
{ property: 'og:description', content: description },
95+
/** @type {*} - summary | summary_large_image | app | player */
96+
{
97+
name: 'twitter:card',
98+
content: 'summary_large_image',
99+
},
100+
{
101+
name: 'twitter:title',
102+
content: title,
103+
},
104+
{
105+
name: 'twitter:description',
106+
content: description,
107+
},
108+
{
109+
name: 'twitter:image',
110+
content: logo,
111+
},
112+
],
75113
navbar: {
76114
title: 'RxAngular',
77115
logo: {

0 commit comments

Comments
 (0)