Skip to content

Commit

Permalink
seo: add better page descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
abtx committed Aug 10, 2023
1 parent 55d65a9 commit 7c70b4c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
15 changes: 10 additions & 5 deletions src/components/PageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ import Navbar from '../components/Navbar';
import CTA from '../components/CTA';
import Footer from '../components/Footer';

function PageLayout({ title, description, pageClass, children, hideCTA, noIndex }) {
function PageLayout({
title,
description,
pageClass,
children,
hideCTA,
noIndex,
}) {
return (
<HelmetProvider>
<LayoutProvider>
<PageMetadata
title={title}
description={description} />
<PageMetadata title={title} description={description} />

{noIndex && (
<Helmet>
Expand All @@ -28,7 +33,7 @@ function PageLayout({ title, description, pageClass, children, hideCTA, noIndex
{children}
</div>

{!hideCTA && (<CTA />)}
{!hideCTA && <CTA />}
<Footer />
</LayoutProvider>
</HelmetProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/glossary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Finops = () => {
return (
<PageLayout
title="FinOps Glossary - Infracost"
description="Cloud costs, loved by developers"
description="Glossary of FinOps terms and definitions."
pageClass="finops default-page-bg"
hideCTA={true}
noIndex={false}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/glossary/finops.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ import GlossaryTermPage from "../../components/GlossaryTerm/GlossaryTermPage";
import terms from "../../components/GlossarySearch/glossaryTerms.json";
import GlossaryTermPageAside from "../../components/GlossaryTerm/GlossaryTermPageAside";
import GlossaryTermPageContent from "../../components/GlossaryTerm/GlossaryTermPageContent";
import BackButton from "../../components/BackButton";

const Finops = () => {
const finops = terms.filter((term) => term.key === "FinOps")[0];

return (
<PageLayout
title="FinOps - Infracost Glossary"
description="Cloud costs, loved by developers"
description="What is FinOps in cloud computing?"
pageClass="finops default-page-bg"
hideCTA={true}
noIndex={false}
Expand Down

0 comments on commit 7c70b4c

Please sign in to comment.