Skip to content

Commit 8964300

Browse files
authored
Merge pull request #96 from iterative/allow-skipping-template-title
2 parents f408c48 + 00dd32c commit 8964300

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/gatsby-theme-iterative/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dvcorg/gatsby-theme-iterative",
3-
"version": "0.1.19",
3+
"version": "0.1.20",
44
"description": "",
55
"main": "index.js",
66
"types": "src/typings.d.ts",

packages/gatsby-theme-iterative/src/components/SEO/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface IPaginatorPageInfo {
1414
interface ISEOProps {
1515
title?: string
1616
defaultMetaTitle?: boolean
17+
skipTitleTemplate?: boolean
1718
description?: string
1819
keywords?: string
1920
imageAlt?: string
@@ -28,6 +29,7 @@ interface ISEOProps {
2829
const SEO: React.FC<ISEOProps> = ({
2930
title,
3031
defaultMetaTitle,
32+
skipTitleTemplate,
3133
description,
3234
keywords,
3335
image,
@@ -69,7 +71,11 @@ const SEO: React.FC<ISEOProps> = ({
6971
])
7072

7173
return (
72-
<Helmet title={pageTitle} meta={[...prebuildMeta, ...meta]}>
74+
<Helmet
75+
title={pageTitle}
76+
{...(skipTitleTemplate && { titleTemplate: '' })}
77+
meta={[...prebuildMeta, ...meta]}
78+
>
7379
{children}
7480
</Helmet>
7581
)

0 commit comments

Comments
 (0)