Skip to content

Commit eb1e5cc

Browse files
committed
fix(blog): fix twitter title and description to be longer
1 parent 38c9f82 commit eb1e5cc

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

content/blog/what-is-an-independent-voice-assistant/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: What Is an Independent Voice Assistant
2+
title: What Is an Independent Voice Assistant?
33
date: '2020-05-12'
4-
description: An independent voice assistant, sometimes referred to as an "owned assistant," is a type of voice interface that enables companies to directly communicate with their customers.
4+
description: An independent voice assistant, sometimes referred to as an "owned assistant", is a type of voice interface that enables companies to directly communicate with their customers.
55
tags: Product
66
author: mike
77
draft: false

src/components/AboutLayout.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ interface Props {
2121
export default function About({ children }: Props) {
2222
return (
2323
<Layout>
24-
<SEO title="About us" description="About our team" />
24+
<SEO
25+
title="About us"
26+
longTitle="Learn about the company Spokestack"
27+
description="About our team"
28+
/>
2529
<StickyNavLayout header="About" links={links}>
2630
{children}
2731
</StickyNavLayout>

src/components/BlogPost.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default function BlogPost({ post, related }: Props) {
2525
<Layout>
2626
<SEO
2727
title="Blog"
28+
longTitle={post.frontmatter.title}
2829
description={post.frontmatter.description || 'The Spokestack Blog'}
2930
/>
3031
<div css={styles.container}>

src/components/DocsPage.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default function DocsPage({ post, selectFirst }: Props) {
4848
<Layout>
4949
<SEO
5050
title="Docs"
51+
longTitle="Spokestack Documentation"
5152
description={
5253
post.frontmatter.description || 'Documentation for the Spokestack API'
5354
}

src/components/SEO.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ type Meta =
1010

1111
interface Props {
1212
title: string
13+
longTitle?: string
1314
description?: string
1415
lang?: string
1516
meta?: Meta[]
1617
}
1718

1819
export default function SEO({
1920
title,
21+
longTitle,
2022
description = '',
2123
lang = 'en',
2224
meta = []
@@ -55,7 +57,7 @@ export default function SEO({
5557
},
5658
{
5759
property: 'og:title',
58-
content: title
60+
content: longTitle || title
5961
},
6062
{
6163
property: 'og:description',
@@ -75,7 +77,7 @@ export default function SEO({
7577
},
7678
{
7779
name: 'twitter:title',
78-
content: title
80+
content: longTitle || title
7981
},
8082
{
8183
name: 'twitter:description',

0 commit comments

Comments
 (0)