Skip to content

Commit

Permalink
fix: update metadata title to correct page title
Browse files Browse the repository at this point in the history
Close #32
  • Loading branch information
adriantam authored and matthewpereira committed Jun 14, 2022
1 parent f4c7435 commit f6e4f43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const baseUrl = process.env.BASE_URL ?? '/';
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'OpenFGA Docs',
title: 'OpenFGA',
tagline: 'Relationship-based access control made fast, scalable, and easy to use.',
url: 'https://openfga.dev/',
baseUrl: baseUrl,
Expand Down Expand Up @@ -74,6 +74,7 @@ const config = {
// link to the concept page (relative to baseURL)
conceptLink: `docs/concepts`,
longProductName: `OpenFGA`,
landingPageTitle: "Fine Grained Authorization",

// define playgroundName and playgroundURL if you want to show your examples through playground
//playgroundName: '',
Expand Down
3 changes: 2 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import { QuickStartSection, FeaturesSection, ResourcesSection, HeroHeader } from

export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
const title = siteConfig.customFields.landingPageTitle;
return (
<Layout title={`${siteConfig.title}`} description="Description will go into a meta tag in <head />">
<Layout title={`${title}`} description={`${siteConfig.tagline}`}>
<HeroHeader />
<main>
<QuickStartSection />
Expand Down

0 comments on commit f6e4f43

Please sign in to comment.