Skip to content

Commit 9edf8df

Browse files
author
Alban Bailly
committed
improve SEO
1 parent 582c775 commit 9edf8df

File tree

1 file changed

+15
-6
lines changed
  • src/components/5_templates

1 file changed

+15
-6
lines changed

src/components/5_templates/api.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,21 @@ const apiPage = ({ data }) => {
3333
default: "default"
3434
};
3535
return (
36-
<Layout
37-
// title="API Documentation"
38-
// subtitle="Linode API Documentation"
39-
fullWidth
40-
>
41-
<SEO title="Linode API Documentation" description="Container Tools" />
36+
<Layout fullWidth>
37+
<SEO
38+
title={
39+
"Linode API | " + (n.get && n.get.tags) ||
40+
(n.post && n.post.tags) ||
41+
(n.put && n.put.tags) ||
42+
(n.delete && n.delete.tags)
43+
}
44+
description={
45+
(n.get && n.get.description ? n.get.description : "") +
46+
(n.post && n.post.description ? n.post.description : "") +
47+
(n.put && n.put.description ? n.put.description : "") +
48+
(n.delete && n.delete.description ? n.delete.description : "")
49+
}
50+
/>
4251
<div className="flex flex-wrap">
4352
<div className="md:hidden search-header-wrapper">
4453
<SearchHeader />

0 commit comments

Comments
 (0)