Skip to content

Commit

Permalink
SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Dec 17, 2024
1 parent 9e8b4ae commit e2b58cb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
15 changes: 14 additions & 1 deletion src/pages/customer-stories/p/[pageIndex]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { perPage, query } from './_graphql';
import { render as toPlainText } from 'datocms-structured-text-to-plain-text';
import s from './_style.module.css';
import { DraftModeQueryListener } from '~/components/DraftModeQueryListener';
import { overrideSeo, seoDescription, seoGeneratedCard, seoTitle } from '~/lib/datocms/seo';
export interface Props {
pageIndex?: number;
Expand Down Expand Up @@ -42,7 +43,19 @@ if (!page || posts.length === 0) {
}
---

<Layout additionalSeo={page.seo}>
<Layout
additionalSeo={overrideSeo(
page.seo,
seoTitle('Customer stories'),
seoDescription(
'Conversations with customers working on some really cool use cases with DatoCMS',
),
seoGeneratedCard(Astro, {
title: 'Customer stories',
excerpt: 'Conversations with customers working on some really cool use cases with DatoCMS',
}),
)}
>
<Hero>
<Fragment slot="title"><mark>Customer Stories</mark></Fragment>
<Fragment slot="subtitle">
Expand Down
26 changes: 14 additions & 12 deletions src/pages/og-card/index.png.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,20 @@ export const GET: APIRoute = async ({ request, url }) => {
gap: '20px',
})}"
>
<div
style="${css({
fontSize: '30px',
color: '#71788a',
letterSpacing: '-0.04em',
textTransform: 'uppercase',
display: 'flex',
fontWeight: 'bold',
})}"
>
${kicker}
</div>
${kicker
? /* HTML */ `<div
style="${css({
fontSize: '30px',
color: '#71788a',
letterSpacing: '-0.04em',
textTransform: 'uppercase',
display: 'flex',
fontWeight: 'bold',
})}"
>
${kicker}
</div>`
: ''}
${logoPngUrl
? /* HTML */ `
<img
Expand Down

0 comments on commit e2b58cb

Please sign in to comment.