Skip to content

Commit

Permalink
Merge pull request #207 from Web-Dev-Path/fix/robots.txt
Browse files Browse the repository at this point in the history
Fix robots.txt and add SEO tags
  • Loading branch information
vmcodes authored Nov 24, 2023
2 parents 18101b4 + 45db4db commit 05de1ad
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added Igor to 'about us'
- Added GPL v3 license
- Added netlify icon and text to the footer
- Updated robots.txt and added SEO tags
- Added Code of Conduct

### Fixed
Expand Down
28 changes: 28 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,38 @@ class MyDocument extends Document {
return (
<Html>
<Head>
<meta charset='utf-8' />
<meta name='description' content='Level up your tech career.' />
<meta name='keywords' content='Web Dev Path' />
<meta property='og:title' content='Web Dev Path' />
<meta
property='og:description'
content='Level up your tech career.'
/>
<meta property='og:type' content='website' />
<meta property='og:url' content='https://www.webdevpath.co' />
<meta
property='og:image'
content='https://www.webdevpath.co/images/logo.png'
/>
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:title' content='Web Dev Path' />
<meta
name='twitter:description'
content='Level up your tech career.'
/>
<meta
name='twitter:image'
content='https://www.webdevpath.co/images/logo.png'
/>
<meta name='twitter:image:alt' content='Web Dev Path' />
<meta name='twitter:site' content='@WebDevPath' />
<meta name='robots' content='index, follow' />
<link
rel='stylesheet'
href='https://fonts.googleapis.com/css2?family=Assistant:wght@400;700&family=Open+Sans:wght@700&display=swap'
/>
<link rel='canonical' href='https://www.webdevpath.co' />
</Head>
<body>
<Main />
Expand Down
Binary file added public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/vincent.webp
Binary file not shown.
5 changes: 4 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
User-agent: *
Disallow: /

User-agent: Twitterbot
Allow: /

Sitemap: https://www.webdevpath.co/sitemap.xml

0 comments on commit 05de1ad

Please sign in to comment.