Skip to content

Commit

Permalink
- added og meta title for twitter and type
Browse files Browse the repository at this point in the history
  • Loading branch information
elartix committed Feb 27, 2024
1 parent 9344d00 commit 6436efe
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { themes as prismThemes } from 'prism-react-renderer';

const metadataConfig = {
title: 'Tutorial for redux-saga-controller',
description: 'A tool to simplify work with react, redux and redux-saga'
};

// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(module.exports = {
title: 'redux-saga-controller',
tagline: 'A tool to simplify work with react, redux and redux-saga',
tagline: metadataConfig.description,
url: 'https://redux-saga-controller.js.org',
baseUrl: '/',
trailingSlash: false,
Expand Down Expand Up @@ -50,6 +55,12 @@ import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/meta.png',
metadata: [
{ name: 'og:type', content: 'website' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: `${metadataConfig.title}` },
{ name: 'twitter:description', content: `${metadataConfig.description}` },
],
navbar: {
title: 'redux-saga-controller',
logo: {
Expand Down

0 comments on commit 6436efe

Please sign in to comment.